:root {
    --primary-color: #FF9933; /* Saffron */
    --secondary-color: #138808; /* Green */
    --accent-color: #000080; /* Navy Blue */
    --bg-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--secondary-color);
}

.header h1 {
    color: var(--accent-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header h2 {
    color: var(--text-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2em;
    font-weight: bold;
}

.min-order {
    color: #e74c3c;
    background: #ffecec;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Wheel Container */
.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--accent-color);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: 4px solid white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 5;
    transition: all 0.3s;
}

.spin-btn:hover {
    background: #0000a0;
    transform: translate(-50%, -50%) scale(1.1);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

/* Result Section */
.result-container {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
    margin-top: 20px;
}

.result-box {
    background: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spin-again-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.spin-again-btn:hover {
    background: #0f6b06;
}

/* Offers Grid */
.offers-section {
    width: 100%;
    margin-top: 40px;
}

.offers-section h3, .terms-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.offer-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border-left: 5px solid;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
}

/* Alternating border colors for offer cards */
.offer-card:nth-child(3n+1) { border-color: var(--primary-color); }
.offer-card:nth-child(3n+2) { border-color: var(--secondary-color); }
.offer-card:nth-child(3n+3) { border-color: var(--accent-color); }

.offer-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
}

.offer-card h4 {
    margin-bottom: 10px;
    color: #333;
    padding-right: 20px;
}

.offer-card p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.mrp { color: #666; }
.discount { color: #e67e22; font-weight: bold; }
.chances { color: #27ae60; font-size: 0.8em !important; font-style: italic; }

/* Terms Section */
.terms-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.terms-section ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.terms-section li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.terms-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    canvas {
        width: 300px;
        height: 300px;
    }
    .header h1 {
        font-size: 1.8em;
    }
}

/* Stats Section */
.stats-container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stats-container h3 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 0.9em;
    border-left: 3px solid #ccc;
}

.stat-item.has-won {
    background: #e8f5e9;
    border-left-color: var(--secondary-color);
}

.stat-count {
    font-weight: bold;
    color: var(--accent-color);
}
