/* =============================================================================
   Calculator Selection Page Styles
   Inherits main site styles with calculator-specific modifications
   ========================================================================== */

/* Import main site styles */
@import url('/css/style.css');

/* Calculator-specific styles that build upon main site styles */

/* TLD Type Selection - Using original calculator card styling */
.calculator-hero {
    padding: 120px 0 40px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Word Cloud Integration */
.calculator-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure word cloud doesn't interfere with readability */
.calculator-hero .hero-content {
    position: relative;
    z-index: 3;
    border-radius: 20px;
    margin: 0 auto;
}

.tld-type-selector h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
}

.beginner-explanation {
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--glass-border);
}

.tld-intro, .selection-purpose {
    margin-bottom: 16px;
    line-height: 1.6;
}

.tld-intro strong, .selection-purpose strong {
    color: var(--md-sys-color-primary);
}

/* TLD Type Options - 2 per row on desktop with equal height */
.tld-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    align-items: stretch;
}

.option-card {
    position: relative;
    background: var(--md-sys-color-surface);
    border: 3px solid var(--md-sys-color-outline);
    border-radius: 0px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* TLD-specific card colors - permanent dark theme colors */
.card-generic {
    background: #FFCC99 !important;
    border: 3px solid #FFCC99 !important;
    color: #000000 !important;
}

.card-generic:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-brand {
    background: #cc9933 !important;
    border: 3px solid #cc9933 !important;
    color: #000000 !important;
}

.card-brand:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-geo {
    background: #33CC66 !important;
    border: 3px solid #33CC66 !important;
    color: #000000 !important;
}

.card-geo:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-cryptos {
    background: #FF6600 !important;
    border: 3px solid #FF6600 !important;
    color: #000000 !important;
}

.card-cryptos:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-niche {
    background: #999966 !important;
    border: 3px solid #999966 !important;
    color: #000000 !important;
}

.card-niche:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-people {
    background: #CC99FF !important;
    border: 3px solid #CC99FF !important;
    color: #000000 !important;
}

.card-people:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-institution {
    background: #CFB5AC !important;
    border: 3px solid #CFB5AC !important;
    color: #000000 !important;
}

.card-institution:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-teams {
    background: #99FFFF !important;
    border: 3px solid #99FFFF !important;
    color: #000000 !important;
}

.card-teams:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-faith {
    background: #00D9FF !important;
    border: 3px solid #00D9FF !important;
    color: #000000 !important;
}

.card-faith:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-language {
    background: #37FF00 !important;
    border: 3px solid #37FF00 !important;
    color: #000000 !important;
}

.card-language:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-partner {
    background: #FF6363 !important;
    border: 3px solid #FF6363 !important;
    color: #000000 !important;
}

.card-partner:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.card-custom {
    background: #FFFF00 !important;
    border: 3px solid #FFFF00 !important;
    color: #000000 !important;
}

.card-custom:hover {
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}


.option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.option-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #000000 !important;
}

.option-price {
    background: rgba(0, 0, 0, 0.1);
    color: #000000 !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 4px;
}

.option-card p {
    color: #000000 !important;
    line-height: 1.6;
    margin-bottom: 16px;
}

.option-examples {
    background: rgba(0, 0, 0, 0.15);
    padding: 12px;
    margin-bottom: 16px;
}

.option-examples strong {
    color: #000000 !important;
}

.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.option-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000 !important;
}

.option-features svg {
    width: 16px;
    height: 16px;
}

/* Specialty Applications */
.specialty-applications {
    margin-top: 48px;
}

.specialty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--md-sys-color-primary);
    color: var(--md-sys-color-on-surface);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 80px;
}

.specialty-card {
    position: relative;
    background: var(--md-sys-color-surface);
    border: 3px solid var(--md-sys-color-outline);
    border-radius: 0px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.specialty-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.specialty-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #000000 !important;
}

.specialty-tag {
    background: rgba(0, 0, 0, 0.1);
    color: #000000 !important;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.specialty-description {
    color: #000000 !important;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.specialty-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.specialty-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #000000 !important;
}

.specialty-features svg {
    width: 12px;
    height: 12px;
}

/* Scroll to calculator function */
#calculator-main {
    scroll-margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tld-type-options {
        grid-template-columns: 1fr;
    }

    .specialty-grid {
        grid-template-columns: 1fr;
    }

    .calculator-hero {
        padding: 100px 0 60px 0;
    }

    .option-features span {
        font-size: 0.8rem;
    }

    .specialty-features {
        grid-template-columns: 1fr;
    }
}

/* Tablet responsive design */
@media (min-width: 769px) and (max-width: 1024px) {
    .tld-type-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: stretch;
    }

    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: stretch;
    }
}

/* Large desktop responsive design */
@media (min-width: 1200px) {
    .tld-type-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }

    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
}

/* Dark theme overrides */
[data-theme="dark"] .option-card,
[data-theme="dark"] .specialty-card {
    border-color: var(--md-sys-color-outline-variant);
}

[data-theme="dark"] .option-card p,
[data-theme="dark"] .specialty-description {
    color: var(--md-sys-color-on-surface-variant);
}

[data-theme="dark"] .option-features span,
[data-theme="dark"] .specialty-features span {
    background: rgba(255, 255, 255, 0.18);
    color: var(--md-sys-color-on-surface-variant);
}

/* Calculator-specific animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tld-type-option,
.specialty-card {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.tld-type-option:nth-child(1) { animation-delay: 0.1s; }
.tld-type-option:nth-child(2) { animation-delay: 0.2s; }
.specialty-card:nth-child(1) { animation-delay: 0.3s; }
.specialty-card:nth-child(2) { animation-delay: 0.4s; }
.specialty-card:nth-child(3) { animation-delay: 0.5s; }
.specialty-card:nth-child(4) { animation-delay: 0.6s; }
.specialty-card:nth-child(5) { animation-delay: 0.7s; }
.specialty-card:nth-child(6) { animation-delay: 0.8s; }
.specialty-card:nth-child(7) { animation-delay: 0.9s; }
.specialty-card:nth-child(8) { animation-delay: 1.0s; }
.specialty-card:nth-child(9) { animation-delay: 1.1s; }
.specialty-card:nth-child(10) { animation-delay: 1.2s; }
