/**
 * GoldenVisa Invest - Custom CSS
 * Additional styles and overrides
 * 
 * @package GoldenVisaInvest
 * @version 1.0.0
 */

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.95rem;
}

.header-phone:hover {
    color: var(--white);
}

.header-phone i {
    font-size: 0.9rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-blue);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

/* Page Content Styles */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-featured-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.page-entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-entry-content ul,
.page-entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-entry-content li {
    margin-bottom: 10px;
}

.page-entry-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Entry Styles */
.entry-header {
    margin-bottom: 40px;
}

.entry-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.entry-tags {
    margin-bottom: 20px;
}

.tag-label {
    font-weight: 600;
    color: var(--navy-blue);
    margin-right: 10px;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share span {
    font-weight: 600;
    color: var(--navy-blue);
}

.social-share a {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-blue);
    transition: var(--transition);
}

.social-share a:hover {
    background: var(--gold);
    color: var(--navy-blue);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    margin-top: 40px;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 10px;
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.nav-previous,
.nav-next {
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
    box-shadow: var(--shadow-hover);
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-blue);
}

/* Comments */
.comments-area {
    margin-top: 50px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--navy-blue);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--gray);
}

.comment-content {
    color: var(--text-secondary);
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--teal);
    font-weight: 500;
    margin-top: 15px;
}

/* Comment Form */
.comment-form {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy-blue);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.comment-form textarea {
    min-height: 150px;
}

.form-submit input[type="submit"] {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-blue);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Alerts */
.alert {
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

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

.no-results-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
}

/* Popular Pages */
.popular-pages {
    margin-top: 30px;
}

/* Quiz Success */
.quiz-success {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--teal);
    margin-bottom: 20px;
}

.recommendations {
    text-align: left;
    margin: 30px 0;
}

.recommendation-item {
    padding: 20px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.recommendation-item h4 {
    margin-bottom: 10px;
}

.recommendation-item p {
    margin-bottom: 15px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--navy-blue);
    transition: var(--transition);
}

.video-modal-close:hover {
    background: var(--gold);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Admin Styles */
.goldenvisa-meta-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.goldenvisa-meta-box input,
.goldenvisa-meta-box select,
.goldenvisa-meta-box textarea {
    width: 100%;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-cta {
        display: none;
    }

    .page-title,
    .entry-title {
        font-size: 2rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title,
    .entry-title {
        font-size: 1.75rem;
    }

    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }

    .social-share {
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .scroll-to-top,
    .cookie-consent,
    .social-share,
    .post-navigation,
    .comments-area,
    .sidebar {
        display: none !important;
    }

    .page-entry-content,
    .entry-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    a {
        text-decoration: none;
        color: var(--text-primary);
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--gray);
    }
}
