/* -------------------------------------------------------------------
   RESOURCES PAGE - Modern CleverTap Theme
---------------------------------------------------------------------- */

:root {
    --ct-orange: #f0804d;
    --ct-orange-dark: #ea6318;
    --ct-orange-light: #fff4ef;
    --ct-charcoal: #1a1a2e;
    --ct-slate: #424242;
    --ct-gray: #5e5e5e;
    --ct-light: #f8f9fc;
    --ct-white: #ffffff;
    --ct-border: #e8eaed;
    
    /* Accent gradients */
    --gradient-orange: linear-gradient(135deg, #f0804d 0%, #ea6318 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-teal: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-coral: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    --gradient-ocean: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --gradient-berry: linear-gradient(135deg, #8e44ad 0%, #c0392b 100%);
}

* {
    box-sizing: border-box;
}

/* Hide left nav for this page */
.c-left-nav {
    display: none;
}

.resources-page {
    margin-top: 70px;
    font-family: 'DM Sans', 'proxima-nova', sans-serif;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    background: var(--ct-orange);
    top: -100px;
    right: 10%;
    animation: float 15s ease-in-out infinite;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    background: #667eea;
    bottom: -50px;
    left: 5%;
    animation: float 12s ease-in-out infinite reverse;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    background: #38ef7d;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(240, 128, 77, 0.2);
    color: var(--ct-orange);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    border: 1px solid rgba(240, 128, 77, 0.3);
    margin-bottom: 25px;
}

.hero__title {
    font-size: 52px;
    font-weight: 700;
    color: var(--ct-white);
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   QUICK LINKS SECTION
   ========================================================================== */

.quick-links {
    padding: 0 20px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-card {
    background: var(--ct-white);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease-out backwards;
    animation-delay: var(--delay);
}

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

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.quick-card--api::before { background: var(--gradient-orange); }
.quick-card--docs::before { background: var(--gradient-purple); }
.quick-card--community::before { background: var(--gradient-teal); }
.quick-card--blog::before { background: var(--gradient-coral); }

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.quick-card:hover::before {
    height: 6px;
}

.quick-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.quick-card__icon svg {
    width: 28px;
    height: 28px;
}

.quick-card--api .quick-card__icon { background: var(--ct-orange-light); color: var(--ct-orange); }
.quick-card--docs .quick-card__icon { background: #f0f0ff; color: #667eea; }
.quick-card--community .quick-card__icon { background: #e8fff4; color: #11998e; }
.quick-card--blog .quick-card__icon { background: #fff5f5; color: #ff6b6b; }

.quick-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ct-charcoal);
    margin: 0 0 8px;
}

.quick-card__desc {
    font-size: 14px;
    color: var(--ct-gray);
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
}

.quick-card__arrow {
    font-size: 20px;
    color: var(--ct-border);
    margin-top: 16px;
    transition: all 0.3s ease;
}

.quick-card:hover .quick-card__arrow {
    color: var(--ct-orange);
    transform: translateX(5px);
}

/* ==========================================================================
   FEATURED RESOURCES SECTION
   ========================================================================== */

.featured {
    padding: 100px 20px;
    background: var(--ct-light);
}

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

.featured__header {
    text-align: center;
    margin-bottom: 60px;
}

.featured__title {
    font-size: 38px;
    font-weight: 700;
    color: var(--ct-charcoal);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.featured__subtitle {
    font-size: 18px;
    color: var(--ct-gray);
    margin: 0;
}

.featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.resource-card {
    background: var(--ct-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.6s ease-out backwards;
    animation-delay: var(--delay);
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.resource-card__image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.resource-card__image--1 {
    background: var(--gradient-orange);
}

.resource-card__image--2 {
    background: var(--gradient-purple);
}

.resource-card__image--3 {
    background: var(--gradient-ocean);
}

.resource-card__tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-card__content {
    padding: 28px;
}

.resource-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ct-charcoal);
    margin: 0 0 12px;
}

.resource-card__desc {
    font-size: 15px;
    color: var(--ct-gray);
    line-height: 1.7;
    margin: 0 0 20px;
}

.resource-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--ct-border);
}

.resource-card__time {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.resource-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-card__link:hover {
    color: var(--ct-orange-dark);
    transform: translateX(3px);
}

/* ==========================================================================
   SDKs SECTION
   ========================================================================== */

.sdks {
    padding: 100px 20px;
    background: var(--ct-white);
}

.sdks__container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.sdks__title {
    font-size: 38px;
    font-weight: 700;
    color: var(--ct-charcoal);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.sdks__subtitle {
    font-size: 18px;
    color: var(--ct-gray);
    margin: 0 0 50px;
}

.sdks__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.sdk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 36px;
    background: var(--ct-light);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    animation: slideUp 0.6s ease-out backwards;
    animation-delay: var(--delay);
}

.sdk-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: var(--ct-white);
}

.sdk-item__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.sdk-item:hover .sdk-item__icon {
    transform: scale(1.1);
}

.sdk-item__icon svg {
    width: 32px;
    height: 32px;
}

.sdk-item__icon--ios { background: linear-gradient(135deg, #333 0%, #000 100%); color: white; }
.sdk-item__icon--android { background: linear-gradient(135deg, #3ddc84 0%, #1f8c4a 100%); color: white; }
.sdk-item__icon--web { background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%); color: white; }
.sdk-item__icon--react { background: linear-gradient(135deg, #61dafb 0%, #21a1cb 100%); color: #282c34; }
.sdk-item__icon--flutter { background: linear-gradient(135deg, #54c5f8 0%, #01579b 100%); color: white; }
.sdk-item__icon--unity { background: linear-gradient(135deg, #222c37 0%, #000 100%); color: white; }

.sdk-item__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ct-slate);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--ct-orange);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: -200px;
    right: -100px;
}

.cta__container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta__content {
    text-align: center;
}

.cta__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--ct-white);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.cta__desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 40px;
    line-height: 1.6;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta__btn {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta__btn--primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 8px 30px rgba(240, 128, 77, 0.4);
}

.cta__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(240, 128, 77, 0.5);
}

.cta__btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* ==========================================================================
   FOOTER OVERRIDE
   ========================================================================== */

.resources-page + .ct-footer {
    margin: 0;
    padding: 30px 20%;
    background: #0f0f1a;
    border-top: none;
    color: rgba(255, 255, 255, 0.6);
}

.resources-page + .ct-footer a {
    color: rgba(255, 255, 255, 0.6);
}

.resources-page + .ct-footer a:hover {
    color: var(--ct-orange);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1100px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 70px;
        min-height: 300px;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        font-size: 17px;
    }
    
    .quick-links__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-links {
        margin-top: -40px;
    }
    
    .featured {
        padding: 70px 20px;
    }
    
    .featured__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured__title,
    .sdks__title,
    .cta__title {
        font-size: 30px;
    }
    
    .sdks {
        padding: 70px 20px;
    }
    
    .sdks__grid {
        gap: 16px;
    }
    
    .sdk-item {
        padding: 20px 28px;
        min-width: 120px;
    }
    
    .cta {
        padding: 70px 20px;
    }
    
    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta__btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .resources-page + .ct-footer {
        padding: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
    }
    
    .sdk-item {
        min-width: calc(50% - 12px);
        flex: 1 1 calc(50% - 12px);
    }
}
