/* Risk Calculator Page Styles - Updated for New Design */

/* Reviews Container */
.reviews-container {
    padding: 1.5rem 0;
    margin: 0 auto;
}

.section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--foreground)); /* Match calculator description */
    margin-bottom: 2rem;
    text-align: center;
}

/* Calculator Container */
.calculator-container {
    padding: 1.5rem 0.5rem; /* Reduced side padding */
    margin: 0 auto;
    max-width: fit-content;
}

.calculator-description {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
    text-align: center;
}

.reviews-container .featured-card {
    display: block; /* Make anchor tag block-level */
    max-width: 100%;
    border: 1px solid hsl(var(--border)); /* Added outline */
    border-radius: var(--radius);
    overflow: hidden;
    background-color: hsl(var(--card));
    text-decoration: none;
    color: inherit;
}

/* Calculator Card - matching Card component from TradingTools.tsx */
.calculator-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 12px hsl(215 30% 20% / 0.08);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* CardHeader - matching text-2xl */
.calculator-card .section-header {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: hsl(var(--foreground));
    padding: 1rem; /* Reduced padding */
    border-bottom: none; /* Removed underline */
}

/* CardContent - matching space-y-6 */
.calculator-card .card-content {
    padding: 1rem; /* Reduced padding */
}

.calculator-card .section-header.spaced {
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    border-bottom: none;
}

/* Input Grid - matching space-y-6 from TradingTools.tsx */
.input-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced spacing between input groups */
    margin-bottom: 1rem; /* Reduced spacing */
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Reduced spacing between label and input */
}

.input-label {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.input-field {
    padding: 0.75rem 1rem;
    height: 3rem; /* h-12 */
    font-size: 1rem; /* text-base */
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: hsl(var(--secondary));
    box-shadow: 0 0 0 2px hsl(var(--secondary) / 0.2);
}

/* Asset Selector */
.asset-selector {
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.asset-selector .input-label {
    display: block;
    margin-bottom: 0.8rem;
    text-align: center;
}

.asset-selector .input-field {
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27currentColor%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Calculate Button - matching Button component from TradingTools.tsx */
.calculate-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    height: 3rem; /* h-12 */
    font-size: 1rem; /* text-base */
    font-weight: 700; /* font-bold */
    background: hsl(var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calculate-btn:hover {
    background: hsl(var(--secondary) / 0.9);
}

.calculate-btn:disabled {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    cursor: not-allowed;
}

/* Results - should be inside calculator-card */
.calculator-card .results {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 0 1.5rem 1.5rem;
}

.calculator-card .results.show {
    max-height: 5000px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.tiers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tier-card {
    background-color: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px hsl(215 30% 20% / 0.1);
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px hsl(215 30% 20% / 0.15);
}

.tier-card.conservative {
    border-color: hsl(142 76% 36%); /* Green */
    background: hsl(142 76% 36% / 0.05);
}

.tier-card.moderate {
    border-color: hsl(38 92% 50%); /* Orange */
    background: hsl(38 92% 50% / 0.05);
}

.tier-card.aggressive {
    border-color: hsl(0 84% 60%); /* Red */
    background: hsl(0 84% 60% / 0.05);
}

.tier-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.tier-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.tier-header p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0;
}

.tier-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tier-stat {
    text-align: center;
}

.tier-stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.tier-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.tier-stat-value.small {
    font-size: 1.5rem;
}

.tier-message {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.tier-message p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin: 0;
}

/* Warning Container */
#warningContainer {
    background: hsl(38 92% 50% / 0.1);
    border: 1px solid hsl(38 92% 50% / 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}

#warningContainer.warning {
    display: block;
}

#warningContainer p {
    color: hsl(38 92% 50%);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

/* Paid Tools Section */
.paid-tools-container {
    padding: 1.5rem 0.5rem;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(215 30% 20% / 0.15);
}

.tool-card.premium {
    border-color: hsl(38 92% 50%);
    background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(38 92% 50% / 0.05) 100%);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.tool-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
}

.price-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: hsl(38 92% 50%);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tool-content {
    padding: 1.5rem;
}

.tool-description {
    color: hsl(var(--foreground));
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tool-features li {
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: hsl(142 76% 36%);
    font-weight: 700;
}

.tool-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.tool-price {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.tool-cta-btn {
    background: hsl(var(--secondary));
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tool-cta-btn:hover {
    background: hsl(var(--secondary) / 0.9);
}

.premium-disclaimer {
    background: hsl(38 92% 50% / 0.1);
    border: 1px solid hsl(38 92% 50% / 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.premium-disclaimer p {
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.premium-disclaimer strong {
    color: hsl(38 92% 50%);
}

