/* ===================================
   365 DIALER - AI ANSWERING MACHINE DETECTION PAGE STYLES
   Custom styles for AI AMD Feature page
   =================================== */

/* ===== AMD HERO VISUAL ===== */
.amd-visual {
    position: relative;
    width: 400px;
    max-width: 100%;
}

.amd-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.amd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.amd-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.amd-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.amd-status.live {
    background: rgba(120, 253, 196, 0.15);
    color: var(--mint);
}

.amd-status .status-dot {
    width: 8px;
    height: 8px;
    background: var(--mint);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.detection-display {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
    margin-bottom: 15px;
}

.wave-bar {
    width: 6px;
    background: var(--gradient-secondary);
    border-radius: 3px;
    animation: waveAnimation 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 45px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 40px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 20px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 35px; animation-delay: 0.7s; }

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.detection-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(120, 253, 196, 0.15);
    border-radius: var(--radius-md);
    color: var(--mint);
    font-weight: 600;
}

.detection-result i {
    font-size: 1.2rem;
}

.amd-stats-row {
    display: flex;
    gap: 15px;
}

.amd-stat {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.amd-stat .stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cyan);
}

.amd-stat .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== WHAT IS AMD SECTION ===== */
.what-is-amd-section {
    background: var(--bg-primary);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.what-is-amd-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.visual-container {
    position: relative;
    padding: 40px;
}

.agent-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
}

.agent-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agent-head {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-navy);
    margin-bottom: -10px;
    position: relative;
    z-index: 2;
}

.agent-body {
    width: 100px;
    height: 70px;
    background: var(--gradient-glow);
    border-radius: 50px 50px 20px 20px;
}

.phone-visual {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan);
}

.call-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.call-waves span {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    animation: callWave 2s infinite;
    opacity: 0;
}

.call-waves span:nth-child(1) { animation-delay: 0s; width: 70px; height: 70px; }
.call-waves span:nth-child(2) { animation-delay: 0.5s; width: 90px; height: 90px; }
.call-waves span:nth-child(3) { animation-delay: 1s; width: 110px; height: 110px; }

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

.detection-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.detection-badges .badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    animation: floatCard 5s ease-in-out infinite;
}

.detection-badges .badge.human {
    top: 10px;
    right: 0;
    color: var(--mint);
}

.detection-badges .badge.machine {
    bottom: 10px;
    left: 0;
    color: var(--cyan);
    animation-delay: 1s;
}

.detection-badges .badge i {
    font-size: 1rem;
}

.what-is-amd-content .section-badge,
.what-is-amd-content .section-title,
.what-is-amd-content .section-description {
    text-align: left;
}

.what-is-amd-content .section-description {
    margin-bottom: 20px;
}

.amd-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.highlight-item i {
    color: var(--mint);
    font-size: 1rem;
}

/* ===== AMD EFFICIENCY SECTION ===== */
.amd-efficiency-section {
    background: var(--bg-secondary);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.amd-efficiency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.amd-efficiency-content .section-badge,
.amd-efficiency-content .section-title,
.amd-efficiency-content .section-description {
    text-align: left;
}

.amd-efficiency-content .section-description {
    margin-bottom: 20px;
}

.efficiency-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.robot-assistant {
    position: relative;
}

.robot-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-head {
    width: 120px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 60px 60px 30px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -10px;
    z-index: 2;
}

.robot-eyes {
    display: flex;
    gap: 25px;
    margin-top: -10px;
}

.robot-eyes .eye {
    width: 20px;
    height: 20px;
    background: var(--dark-navy);
    border-radius: 50%;
    animation: blink 4s infinite;
}

.robot-antenna {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 25px;
    background: var(--dark-navy);
}

.robot-antenna .antenna-ball {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.robot-torso {
    width: 140px;
    height: 120px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-screen {
    width: 80px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.5rem;
}

.robot-arms {
    position: absolute;
    width: 200px;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.robot-arms .arm {
    position: absolute;
    width: 20px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.robot-arms .arm.left {
    left: -10px;
    transform: translateY(-50%) rotate(-20deg);
}

.robot-arms .arm.right {
    right: -10px;
    transform: translateY(-50%) rotate(20deg);
}

.efficiency-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.eff-badge {
    position: absolute;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: floatCard 5s ease-in-out infinite;
}

.eff-badge span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mint);
}

.eff-badge small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.eff-badge.badge-1 {
    top: 0;
    right: -20px;
}

.eff-badge.badge-2 {
    bottom: 0;
    left: -20px;
    animation-delay: 1s;
}

.eff-badge.badge-2 span {
    color: var(--cyan);
}

/* ===== AMD BENEFITS SECTION ===== */
.amd-benefits-section {
    background: var(--bg-primary);
    padding: var(--section-padding);
}

.amd-benefits-header {
    margin-bottom: 50px;
}

.benefits-intro {
    max-width: 700px;
}

.benefits-intro .section-badge,
.benefits-intro .section-title,
.benefits-intro .section-description {
    text-align: left;
}

.benefits-intro .section-description {
    margin-bottom: 25px;
}

.amd-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.amd-benefit-card {
    padding: 30px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.amd-benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow);
}

.amd-benefit-card .benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin-bottom: 20px;
    transition: transform var(--transition-normal);
}

.amd-benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.amd-benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.amd-benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== AMD FEATURES SECTION ===== */
.amd-features-section {
    background: var(--bg-secondary);
    padding: var(--section-padding);
}

.amd-features-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    margin-top: 50px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    border-color: var(--border-color-hover);
    transform: translateX(10px);
}

.feature-item .feature-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--cyan);
}

.feature-item:hover .feature-icon {
    background: var(--gradient-secondary);
    color: var(--dark-navy);
}

.feature-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.demo-form-container {
    position: sticky;
    top: 100px;
}

.demo-form-card {
    padding: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.demo-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.demo-form-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2376fcfb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(118, 252, 251, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .amd-visual {
        width: 360px;
    }

    .what-is-amd-grid,
    .amd-efficiency-grid {
        gap: 50px;
    }

    .amd-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .demo-form-container {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .what-is-amd-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .what-is-amd-visual {
        order: 2;
    }

    .what-is-amd-content {
        order: 1;
    }

    .what-is-amd-content .section-badge,
    .what-is-amd-content .section-title,
    .what-is-amd-content .section-description {
        text-align: center;
    }

    .amd-highlights {
        justify-content: center;
    }

    .amd-efficiency-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .amd-efficiency-content .section-badge,
    .amd-efficiency-content .section-title,
    .amd-efficiency-content .section-description {
        text-align: center;
    }

    .amd-efficiency-content .btn {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    .benefits-intro {
        max-width: 100%;
        text-align: center;
    }

    .benefits-intro .section-badge,
    .benefits-intro .section-title,
    .benefits-intro .section-description {
        text-align: center;
    }

    .benefits-intro .btn {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    .amd-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .amd-benefits-grid {
        grid-template-columns: 1fr;
    }

    .amd-highlights {
        grid-template-columns: 1fr;
    }

    .agent-illustration {
        flex-direction: column;
        gap: 30px;
    }

    .efficiency-visual-container {
        min-height: 300px;
    }

    .robot-head {
        width: 100px;
        height: 80px;
    }

    .robot-torso {
        width: 120px;
        height: 100px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item .feature-icon {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .amd-benefit-card {
        padding: 25px 20px;
    }

    .amd-benefit-card .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-item .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .demo-form-card {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 15px;
    }

    .eff-badge {
        padding: 12px 15px;
    }

    .eff-badge span {
        font-size: 1.2rem;
    }
}
