/*
Theme Name: sonsurumapk.com
Theme URI: http://sonsurumapk.com
Author: alex
Description: Diverse and stylish WordPress theme for sonsurumapk.com with no sidebar layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonsurumapk.com
Tags: blog, modern, responsive, stylish, generated
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Noto+Sans:wght@400;700&display=swap');

:root {
    --primary-color: #C026D3;
    --secondary-color: #D97CE4;
    --background-color: #FDF4FF;
    --header-font: 'Lora', sans-serif;
    --body-font: 'Noto Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
}

/* Header styling */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}
header .site-title {
    margin: 0;
    font-family: var(--header-font);
    font-size: 2.5rem;
}
header .site-description {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.85;
}
/* Navigation menu */
.primary-menu ul {
    list-style: none;
    padding: 0;
    margin: 35px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.primary-menu li {
    margin: 0 15px;
    position: relative;
}
.primary-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    display: block;
}
.primary-menu a:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sub-menu styles */
.primary-menu ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-menu ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu ul ul li {
    margin: 0;
    position: relative;
}

.primary-menu ul ul a {
    color: var(--primary-color);
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.primary-menu ul ul a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    z-index: -1;
}

.primary-menu ul ul a:hover {
    color: #fff;
    background-color: transparent;
    transform: translateX(5px);
}

.primary-menu ul ul a:hover::before {
    width: 100%;
}

/* Nested sub-menu (third level) */
.primary-menu ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 1px;
}

.primary-menu ul ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Arrow indicators for items with sub-menus */
.primary-menu li.menu-item-has-children > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.primary-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.primary-menu ul ul li.menu-item-has-children > a::after {
    content: '▸';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.primary-menu ul ul li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Mobile responsive sub-menu */
@media (max-width: 768px) {
    .primary-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .primary-menu ul ul {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 10px 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        width: 100%;
    }
    
    .primary-menu ul ul a {
        color: #fff;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .primary-menu ul ul a::before {
        display: none;
    }
    
    .primary-menu ul ul a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .primary-menu ul ul ul {
        position: static;
        margin-left: 20px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .primary-menu li.menu-item-has-children > a::after {
        content: '▾';
    }
    
    .primary-menu ul ul li.menu-item-has-children > a::after {
        content: '▾';
        position: static;
        margin-left: 6px;
        transform: none;
    }
}

/* Container & layout */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: block;
    grid-template-columns: none;
    gap: 0;
}

/* Post cards */
.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}
.post-card h2.entry-title {
    margin: 0 0 15px 0;
    font-family: var(--header-font);
    font-size: 1.75rem;
}
.post-card h2.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.post-card h2.entry-title a:hover {
    text-decoration: underline;
}
.post-card .entry-content {
    font-size: 1rem;
    line-height: 1.7;
}

/* Enhanced Article Content Styles */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Beautiful Link Styles */
.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--secondary-color);
    background-size: 100% 2px;
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(192, 38, 211, 0.1);
}

.entry-content a:active {
    transform: translateY(0);
}

/* External link indicator */
.entry-content a[href^="http"]:not([href*="sonsurumapk.com"])::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.entry-content a[href^="http"]:not([href*="sonsurumapk.com"]):hover::after {
    opacity: 1;
}

/* Heading Styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    position: relative;
}

.entry-content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.entry-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.entry-content h4 {
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(192, 38, 211, 0.2);
    padding-bottom: 0.3rem;
}

/* Paragraph and Text Styles */
.entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.entry-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.entry-content em {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 500;
}

/* List Styles */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.entry-content ul li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.entry-content ol li::marker {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Blockquote Styles */
.entry-content blockquote {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.05), rgba(217, 124, 228, 0.05));
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
    font-family: var(--header-font);
}

.entry-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
}

/* Code Styles */
.entry-content code {
    background: rgba(192, 38, 211, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(192, 38, 211, 0.2);
}

.entry-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.9rem;
}

/* Table Styles */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.entry-content th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.entry-content td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.entry-content tr:hover td {
    background-color: rgba(192, 38, 211, 0.05);
}

/* Image Styles */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(192, 38, 211, 0.2);
}

/* Horizontal Rule */
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
}

/* Highlighted Text */
.entry-content mark {
    background: linear-gradient(120deg, rgba(192, 38, 211, 0.2), rgba(217, 124, 228, 0.2));
    color: inherit;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Small Text */
.entry-content small {
    color: #666;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments for article content */
@media (max-width: 768px) {
    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .entry-content h1 {
        font-size: 1.8rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.3rem;
    }
    
    .entry-content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .entry-content table {
        font-size: 0.9rem;
    }
    
    .entry-content th,
    .entry-content td {
        padding: 0.8rem;
    }
}

/* Sidebar styles */
#secondary {
    font-size: 0.9rem;
}
#secondary .widget {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}
#secondary .widget h2 {
    margin-top: 0;
    font-family: var(--header-font);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-menu li {
    margin: 0 12px;
}
.footer-menu a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-menu a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    header .site-title { font-size: 2rem; }
    .primary-menu ul { flex-direction: column; align-items: center; }
    .primary-menu li { margin: 10px 0; }
    .post-card { padding: 20px; }
    .content-wrapper { grid-template-columns: 1fr; }
}

/* Enhanced Site Title Styles */
.site-title a {
    color: #fff;
    font-family: var(--header-font);
    font-weight: 800;
    font-size: 2.8rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.site-title a::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 14px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.site-title a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-title a:hover::before {
    opacity: 0.9;
}

.site-title a:hover::after {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .site-title a {
        font-size: 2.2rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .site-title a {
        font-size: 1.8rem;
        padding: 5px 10px;
    }
}

/* Related Posts Block Styles */
.sonsurumapk-related-posts {
    background: linear-gradient(135deg, #fff, #f8f9ff);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(192, 38, 211, 0.1);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(192, 38, 211, 0.1);
}

.sonsurumapk-related-posts h3 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.sonsurumapk-related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.sonsurumapk-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sonsurumapk-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(192, 38, 211, 0.05);
}

.sonsurumapk-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(192, 38, 211, 0.15);
    border-color: rgba(192, 38, 211, 0.2);
}

.sonsurumapk-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.sonsurumapk-post-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sonsurumapk-post-item:hover img {
    transform: scale(1.05);
}

.sonsurumapk-post-item h4 {
    margin: 0;
    padding: 15px 20px 20px;
    font-family: var(--header-font);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.sonsurumapk-post-item:hover h4 {
    color: var(--secondary-color);
}

/* Fallback for posts without thumbnails */
.sonsurumapk-post-item:not(:has(img)) h4 {
    padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sonsurumapk-related-posts {
        padding: 20px;
        margin: 30px 0;
    }
    
    .sonsurumapk-related-posts h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .sonsurumapk-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sonsurumapk-post-item img {
        height: 140px;
    }
    
    .sonsurumapk-post-item h4 {
        padding: 12px 15px 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sonsurumapk-related-posts {
        padding: 15px;
    }
    
    .sonsurumapk-post-item img {
        height: 120px;
    }
}
