/**
 * Custom styles for we-experts.ru landing page
 * This file contains site-specific styles not covered by Tilda framework
 */

/* ============================
   Smooth Page Transitions
   ============================ */

/* Page transition overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Active state for overlay */
.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fade out transition on body */
body.page-transition-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Fade in animation on page load */
body.page-transition-in {
    animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition for internal links - add a subtle hover effect */
a[href]:not([href^="#"]):not([href^="mailto:"]):not([href^="tel:"]):not([target="_blank"]) {
    transition: color 0.2s ease;
}

/* ============================
   FIX: White page issue when opening locally
   Force content visibility as fallback for Tilda animation script
   ============================ */

.t-records {
    opacity: 1 !important;
}

/* ============================
   Base & Typography
   ============================ */

/* Montserrat font is loaded from Google Fonts in HTML head */

/* ============================
   Pricing Section
   ============================ */

#rec-pricing {
    background-color: #f5f1fa;
}

#rec-pricing .pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

#rec-pricing .pricing-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #373737;
}

#rec-pricing .pricing-title span {
    color: #8d34ee;
}

#rec-pricing .pricing-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

#rec-pricing .pricing-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

#rec-pricing .pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    flex: 1 1 320px;
    max-width: 380px;
    min-width: 280px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(141, 52, 238, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#rec-pricing .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(141, 52, 238, 0.2);
}

#rec-pricing .pricing-card.featured {
    border: 2px solid #8d34ee;
}

#rec-pricing .pricing-card-name {
    font-size: 24px;
    font-weight: 700;
    color: #8d34ee;
    margin-bottom: 8px;
}

#rec-pricing .pricing-card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 48px;
}

#rec-pricing .pricing-card-price {
    font-size: 32px;
    font-weight: 700;
    color: #373737;
    margin-bottom: 24px;
}

#rec-pricing .pricing-card-price span {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

#rec-pricing .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

#rec-pricing .pricing-features li {
    font-size: 14px;
    color: #373737;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

#rec-pricing .pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8d34ee;
    font-weight: 700;
}

#rec-pricing .pricing-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff9bad 0%, #d22948 100%);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    box-shadow: 2px 2px 0px 0px rgba(255, 155, 173, 1);
}

#rec-pricing .pricing-btn:hover {
    opacity: 0.9;
}

/* ============================
   Pricing Section - Responsive
   ============================ */

@media screen and (max-width: 1199px) {
    #rec-pricing .pricing-card {
        flex: 1 1 300px;
        max-width: 360px;
    }
}

@media screen and (max-width: 959px) {
    #rec-pricing .pricing-title {
        font-size: 28px;
    }

    #rec-pricing .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    #rec-pricing .pricing-card {
        flex: 0 1 auto;
        width: 100%;
        max-width: 440px;
        min-width: 0;
    }
}

@media screen and (max-width: 479px) {
    #rec-pricing .pricing-title {
        font-size: 22px;
    }

    #rec-pricing .pricing-subtitle {
        font-size: 14px;
    }

    #rec-pricing .pricing-card {
        padding: 24px 20px;
        max-width: 100%;
    }
}

/* ============================
   Custom Gallery Controls
   ============================ */

.qwert1,
.qwert2 {
    cursor: pointer;
}

/* ============================
   Copy-to-Clipboard Elements
   ============================ */

.qwer,
.qwerr {
    cursor: pointer;
}

/* ============================
   Blog/News Section
   ============================ */

#rec-blog {
    background-color: #f5f1fa;
}

#rec-blog .blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

#rec-blog .blog-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #373737;
}

#rec-blog .blog-title span {
    color: #8d34ee;
}

#rec-blog .blog-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

#rec-blog .blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

#rec-blog .blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(141, 52, 238, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

#rec-blog .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(141, 52, 238, 0.2);
}

#rec-blog .blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

#rec-blog .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#rec-blog .blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#rec-blog .blog-card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#rec-blog .blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #373737;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

#rec-blog .blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

#rec-blog .blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#rec-blog .blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0e6ff;
    color: #8d34ee;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

#rec-blog .blog-loading,
#rec-blog .blog-empty {
    text-align: center;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
    padding: 40px 0;
}

/* Blog Section - Responsive */

@media screen and (max-width: 959px) {
    #rec-blog .blog-title {
        font-size: 28px;
    }

    #rec-blog .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 639px) {
    #rec-blog .blog-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 479px) {
    #rec-blog .blog-title {
        font-size: 22px;
    }

    #rec-blog .blog-subtitle {
        font-size: 14px;
    }
}

/* Blog Pagination */
#rec-blog .blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    font-family: 'Montserrat', Arial, sans-serif;
    flex-wrap: wrap;
}

#rec-blog .blog-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    color: #373737;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

#rec-blog .blog-pagination-btn:hover:not(:disabled) {
    background: #8d34ee;
    border-color: #8d34ee;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(141, 52, 238, 0.3);
}

#rec-blog .blog-pagination-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(141, 52, 238, 0.3);
}

#rec-blog .blog-pagination-btn:disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#rec-blog .blog-pagination-btn.active {
    background: #8d34ee;
    border-color: #8d34ee;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(141, 52, 238, 0.3);
}

#rec-blog .blog-pagination-btn.active:hover {
    background: #7b2dcc;
    border-color: #7b2dcc;
}

#rec-blog .blog-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

#rec-blog .blog-page-info {
    display: none;
}

#rec-blog .blog-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive Pagination */
@media screen and (max-width: 639px) {
    #rec-blog .blog-pagination {
        gap: 6px;
    }
    
    #rec-blog .blog-pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    #rec-blog .blog-pagination-ellipsis {
        min-width: 32px;
        height: 32px;
    }
}
