/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --yellow: #FFD700;
    --dark-yellow: #cca700;
    --light-yellow: #fff4b3;
    --grey: #333333;
    --light-grey: #444444;
}

/* MAK Tools Header Navigation */
.main-nav {
    background-color: var(--black);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo a {
    color: var(--yellow);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--white);
}

.nav-button {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    color: var(--yellow);
    text-align: center;
    padding: 1.5rem 1rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--yellow);
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout */
/* Hero Section */
.hero-section {
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, #000000, #222222);
    background-color: var(--black);
    border-bottom: 2px solid var(--yellow);
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 215, 0, 0.05),
        rgba(255, 215, 0, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--yellow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--yellow);
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--yellow);
}

.cta-button:hover {
    background-color: var(--black);
    color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--grey);
    font-size: 0.9rem;
    color: var(--light-grey);
}

/* Calculator Section */
.calculator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

@media (min-width: 992px) {
    .calculator-wrapper {
        flex-direction: row;
    }
    
    .inputs-section {
        flex: 1;
        border-right: 1px solid var(--grey);
        padding-right: 2rem;
    }
    
    .results-section {
        flex: 2;
        padding-left: 2rem;
    }
}

/* Inputs Section */
.inputs-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    position: relative;
}

.input-group label {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 0.95rem;
}

input, select {
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--black);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.currency-input {
    display: flex;
    align-items: center;
    position: relative;
}

.currency-input select {
    position: absolute;
    left: 0;
    width: 4rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 2;
}

.currency-input input {
    padding-left: 4.5rem;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: var(--black);
    font-size: 1rem;
    z-index: 1;
}

/* Tooltip */
.tooltip {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--yellow);
    color: var(--black);
    font-size: 0.8rem;
    font-weight: bold;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--grey);
    color: var(--white);
    text-align: center;
    border-radius: 4px;
    padding: 0.5rem;
    position: absolute;
    z-index: 5;
    top: -5px;
    right: 30px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.toggle-label {
    flex: 1;
    font-size: 0.95rem;
}

/* Calculate Button */
.calculate-button-container {
    margin-top: 1.5rem;
    text-align: center;
}

.calculate-button {
    background-color: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.calculate-button:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.calculate-button:active {
    transform: translateY(0);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--yellow);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-card {
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.15);
}

.result-card h3 {
    font-size: 1rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.result-card p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    transition: all 0.3s ease;
}

.positive-result {
    color: var(--yellow);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.neutral-result {
    color: var(--white);
}

.negative-result {
    color: #FF6B6B;
}

/* Graph */
.graph-container {
    width: 100%;
    height: 300px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Yearly Breakdown */
.yearly-breakdown-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.breakdown-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--grey);
}

th {
    color: var(--yellow);
    font-weight: 600;
    position: sticky;
    top: 0;
    background-color: var(--black);
    z-index: 1;
}

tr:hover {
    background-color: rgba(50, 50, 50, 0.5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.action-button {
    background-color: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: var(--black);
    color: var(--yellow);
    border-color: var(--yellow);
}

/* SEO Content */
.seo-content {
    background-color: rgba(20, 20, 20, 0.6);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.seo-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p, 
.seo-content li {
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content ul, 
.seo-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-container {
    margin-top: 1rem;
}

details {
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
}

summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    color: var(--yellow);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    padding: 0 1rem 1rem;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .tooltip {
        right: 0;
        top: -25px;
        transform: none;
    }
    
    .tooltip-text {
        top: 25px;
        right: 0;
        left: -100px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
}
