/*
Theme Name: Twenty Twenty-Four Magazines
Theme URI: https://example.com/twentytwentyfour-magazines
Description: A modern standalone theme designed to showcase the Magazines Collection plugin. Features a clean, magazine-style layout highlighting personal collection management, article cataloging, and advanced search capabilities.
Author: Raul Magdalena
Author URI: https://example.com
Version: 1.1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-magazines
Tags: magazine, collection, library, two-columns, custom-colors, custom-menu, editor-style, featured-images
*/

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 20px;
    flex-shrink: 0;
}

.menu-primary-menu-container {
    flex: 0 1 auto;
}

.custom-language-selector {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.lang-selector-btn:hover {
    background-color: #e9ecef;
    border-color: #667eea;
}

.lang-selector-btn img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.custom-language-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 160px;
    margin-right: 10px;
    z-index: 1000;
}

.custom-language-selector.open .lang-dropdown {
    display: flex;
}

.lang-dropdown .lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
}

.lang-dropdown .lang-option:first-child {
    border-radius: 6px 6px 0 0;
}

.lang-dropdown .lang-option:last-child {
    border-radius: 0 0 6px 6px;
}

.lang-dropdown .lang-option:hover {
    background: #f8f9fa;
}

.lang-dropdown .lang-option.active {
    background: #667eea;
    color: white;
}

.lang-dropdown .lang-option img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   User Menu
   ========================================================================== */

.user-menu {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.custom-user-selector {
    position: relative;
}

.user-selector-btn,
.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-selector-btn:hover,
.login-link:hover {
    background-color: #e9ecef;
    border-color: #667eea;
}

.user-selector-btn svg:first-child,
.login-link svg {
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
}

.custom-user-selector.open .user-dropdown {
    display: flex;
}

.custom-user-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown .user-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
}

.user-dropdown .user-option:first-child {
    border-radius: 6px 6px 0 0;
}

.user-dropdown .user-option:last-child {
    border-radius: 0 0 6px 6px;
}

.user-dropdown .user-option:hover {
    background: #f8f9fa;
}

.user-dropdown .user-option svg {
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher {
        padding-left: 10px;
    }
    
    .user-menu {
        margin-left: 10px;
    }
    
    .user-selector-btn span,
    .login-link span {
        display: none;
    }
    
    .user-selector-btn,
    .login-link {
        min-width: auto;
        padding: 8px;
    }
}
    
    .lang-selector-btn {
        min-width: 110px;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .lang-selector-btn span {
        display: none;
    }
    
    .lang-selector-btn img {
        width: 24px;
        height: 18px;
    }
    
    .lang-dropdown {
        min-width: 130px;
    }
}

/* ==========================================================================
   Beta Version Ribbon
   ========================================================================== */

.beta-ribbon {
    position: fixed;
    top: 35px;
    left: -60px;
    z-index: 9999;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 12px 65px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
}

.beta-ribbon .beta-text {
    display: block;
    font-size: 13px;
}

.beta-ribbon .beta-version {
    display: block;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 1px;
}

.beta-ribbon:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    border-left: 3px solid #16a34a;
    border-bottom: 3px solid transparent;
}

.beta-ribbon:after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    border-right: 3px solid #16a34a;
    border-bottom: 3px solid transparent;
}

/* ==========================================================================
   Header & Footer
   ========================================================================== */

.site-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.site-branding {
    text-align: center;
    margin-bottom: 15px;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-width: 200px;
    height: auto;
    max-height: 80px;
}

.site-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.site-title a {
    color: #667eea;
    text-decoration: none;
}

.site-title a:hover {
    color: #764ba2;
}

.site-description {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.main-navigation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #667eea;
}

.user-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-link,
.login-link,
.logout-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.user-profile-link:hover,
.login-link:hover,
.logout-link:hover {
    color: #764ba2;
}

.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #667eea;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-social a {
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.footer-info a:hover {
    color: #667eea;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 0;
    z-index: 999;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background: #f8f9fa;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #333;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-section h2,
    .about-content h2,
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   WordPress Core Content Styles
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.site-main {
    min-height: 60vh;
}

/* Post & Page Styles */
article {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

article:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #667eea;
}

.entry-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-content,
.entry-summary {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 20px;
}

.read-more {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tags-links,
.cat-links {
    margin-top: 15px;
}

.tags-links a,
.cat-links a {
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    color: #555;
    margin-right: 8px;
    display: inline-block;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.tags-links a:hover,
.cat-links a:hover {
    background: #667eea;
    color: white;
}

/* Archive Styles */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.archive-description {
    color: #777;
    font-size: 1.1rem;
}

/* Navigation */
.posts-navigation,
.post-navigation {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #667eea;
    color: white;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.no-results p {
    color: #777;
    font-size: 1.1rem;
}

/* Page Links */
.page-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.page-links a:hover {
    background: #667eea;
    color: white;
}

/* ==========================================================================
   User Profile Page
   ========================================================================== */

.user-profile-page {
    padding: 40px 20px;
}

.user-profile-page .container {
    max-width: 800px;
    margin: 0 auto;
}

.user-profile-page .page-title {
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
}

/* Messages and Errors */
.profile-errors,
.profile-messages {
    margin-bottom: 20px;
}

.error-message {
    background: #fee;
    border-left: 4px solid #c33;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #c33;
}

.success-message {
    background: #efe;
    border-left: 4px solid #3c3;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #3c3;
}

/* Profile Info */
.profile-info {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.user-avatar img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.avatar-note a {
    color: #667eea;
    text-decoration: none;
}

.avatar-note a:hover {
    text-decoration: underline;
}

.user-details h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.user-username {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.user-email {
    font-size: 14px;
    color: #999;
    margin: 5px 0;
}

/* Profile Sections */
.profile-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.profile-section h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

/* Forms */
.profile-form,
.password-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.field-note {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-actions {
    margin-top: 25px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .user-profile-page .page-title {
        font-size: 24px;
    }
}
