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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Game Container */
.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.game-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.game-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.control-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.control-btn.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
}

.control-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Game Board */
.game-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Foundation Area */
.foundation-area {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.foundation-piles {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.foundation-pile {
    width: 80px;
    height: 120px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.foundation-pile:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.8);
}

/* Tableau Area */
.tableau-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Stock and Waste */
.stock-waste-area {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.stock-pile, .waste-pile {
    width: 80px;
    height: 120px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stock-pile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.stock-pile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.waste-pile {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

/* Tableau Piles */
.tableau-piles {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.tableau-pile {
    width: 80px;
    min-height: 120px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.tableau-pile:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.8);
}

/* Cards */
.card {
    width: 80px;
    height: 120px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    font-weight: 600;
}

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

.card.selected {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    border: 3px solid #667eea;
    position: relative;
}

.card.selected::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #764ba2;
    border-radius: 18px;
    z-index: -1;
    animation: glow 1.5s ease-in-out infinite alternate;
}

.card.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(1.05);
    z-index: 1000 !important;
    pointer-events: none;
}

.card.draggable {
    cursor: grab;
}

.card.draggable:active {
    cursor: grabbing;
}

.foundation-pile.drag-over,
.tableau-pile.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.card.face-down {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card.face-down .card-value,
.card.face-down .card-suit {
    display: none;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-suit {
    font-size: 1.5rem;
    text-align: center;
    margin: auto 0;
}

.card.red .card-value,
.card.red .card-suit {
    color: #e74c3c;
}

.card.black .card-value,
.card.black .card-suit {
    color: #2c3e50;
}

/* Card Stacking */
.tableau-pile .card {
    margin-bottom: 20px;
}

.tableau-pile .card:last-child {
    margin-bottom: 0;
}

/* Game Overlay */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.game-overlay.show {
    display: flex;
}

.overlay-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.overlay-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-header p {
    font-size: 1.1rem;
    color: #86868b;
    margin-bottom: 30px;
}

.overlay-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overlay-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.overlay-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overlay-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

.overlay-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.overlay-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.overlay-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.overlay-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.overlay-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Hint Overlay */
.hint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.hint-overlay.show {
    display: flex;
}

.hint-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.hint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hint-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

.hint-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #86868b;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hint-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.hint-message {
    font-size: 1rem;
    color: #1d1d1f;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardDeal {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(118, 75, 162, 0.8);
    }
}

.card.dealing {
    animation: cardDeal 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-stats {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .game-controls {
        justify-content: center;
    }
    
    .control-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .foundation-piles {
        gap: 15px;
    }
    
    .foundation-pile {
        width: 70px;
        height: 105px;
    }
    
    .tableau-area {
        flex-direction: column;
        align-items: center;
    }
    
    .stock-waste-area {
        margin-bottom: 20px;
    }
    
    .stock-pile, .waste-pile {
        width: 70px;
        height: 105px;
    }
    
    .tableau-piles {
        gap: 10px;
    }
    
    .tableau-pile {
        width: 70px;
        min-height: 105px;
    }
    
    .card {
        width: 70px;
        height: 105px;
        padding: 6px;
    }
    
    .card-value {
        font-size: 1rem;
    }
    
    .card-suit {
        font-size: 1.3rem;
    }
    
    .overlay-content {
        padding: 30px 20px;
    }
    
    .overlay-header h2 {
        font-size: 1.5rem;
    }
    
    .overlay-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.75rem;
    }
    
    .game-stats {
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .control-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .foundation-pile {
        width: 60px;
        height: 90px;
    }
    
    .stock-pile, .waste-pile {
        width: 60px;
        height: 90px;
    }
    
    .tableau-pile {
        width: 60px;
        min-height: 90px;
    }
    
    .card {
        width: 60px;
        height: 90px;
        padding: 5px;
    }
    
    .card-value {
        font-size: 0.9rem;
    }
    
    .card-suit {
        font-size: 1.1rem;
    }
}

/* SEO Content Styles */
.seo-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.rule-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.rule-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.rule-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.rule-item p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tip-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tip-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.tip-item p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* FAQ List */
.faq-list {
    margin-top: 30px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design for SEO Content */
@media (max-width: 768px) {
    .seo-content {
        padding: 40px 0;
    }
    
    .content-section {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .rules-grid,
    .tips-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tip-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 25px 15px;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .rule-item,
    .feature-item {
        padding: 20px 15px;
    }
    
    .tip-item {
        padding: 20px 15px;
    }
    
    .faq-item {
        padding: 20px 15px;
    }
}

/* Page Navigation Styles */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.page-content {
    flex: 1;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: #86868b;
}

.page-footer {
    background: rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Additional Page Styles */
.game-objective,
.winning-tips,
.contact-section,
.cta-section {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.setup-item {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.setup-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.setup-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.setup-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.setup-item p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
}

.rules-list {
    margin-top: 30px;
}

.rule-item-detailed {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.rule-item-detailed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rule-item-detailed h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.rule-item-detailed p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.rule-item-detailed ul {
    margin: 0;
    padding-left: 20px;
}

.rule-item-detailed li {
    color: #4a5568;
    margin-bottom: 5px;
    line-height: 1.5;
}

.play-steps {
    margin-top: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.control-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.control-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.control-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.control-item ul {
    margin: 0;
    padding-left: 20px;
}

.control-item li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

.advanced-tips,
.mistakes-list,
.speed-tips {
    margin-top: 30px;
}

.advanced-tip,
.mistake-item,
.speed-tip {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.advanced-tip:hover,
.mistake-item:hover,
.speed-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advanced-tip h3,
.mistake-item h3,
.speed-tip h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.advanced-tip p,
.mistake-item p,
.speed-tip p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.scoring-tips {
    margin-top: 30px;
}

.scoring-tip {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.scoring-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.scoring-tip h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.scoring-tip ul {
    margin: 0;
    padding-left: 20px;
}

.scoring-tip li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.practice-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.practice-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.practice-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.practice-item p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.policy-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.policy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.policy-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.policy-section p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.policy-section ul {
    margin: 0;
    padding-left: 20px;
}

.policy-section li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-features,
.eligibility-requirements,
.disclaimer-list,
.liability-limitations,
.indemnification-scope {
    margin: 20px 0;
}

.service-features ul,
.eligibility-requirements ul,
.disclaimer-list ul,
.liability-limitations ul,
.indemnification-scope ul {
    margin: 0;
    padding-left: 20px;
}

.service-features li,
.eligibility-requirements li,
.disclaimer-list li,
.liability-limitations li,
.indemnification-scope li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-info p {
    margin: 5px 0;
    color: #4a5568;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.sitemap-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.sitemap-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.sitemap-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sitemap-item h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-item h3 a:hover {
    color: #764ba2;
}

.sitemap-item p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

.sitemap-item ul {
    margin: 0;
    padding-left: 20px;
}

.sitemap-item li {
    color: #4a5568;
    margin-bottom: 5px;
    line-height: 1.4;
}

.features-sitemap,
.content-sitemap,
.technical-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-category,
.content-category,
.tech-category {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-category:hover,
.content-category:hover,
.tech-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.feature-category h3,
.content-category h3,
.tech-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.feature-category ul,
.content-category ul,
.tech-category ul {
    margin: 0;
    padding-left: 20px;
}

.feature-category li,
.content-category li,
.tech-category li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.4;
}

.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.nav-group {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.nav-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.nav-group h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.nav-group a {
    display: block;
    color: #667eea;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-group a:hover {
    color: #764ba2;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .setup-grid,
    .controls-grid,
    .practice-grid,
    .sitemap-grid,
    .features-sitemap,
    .content-sitemap,
    .technical-sitemap,
    .quick-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .setup-item,
    .control-item,
    .practice-item,
    .sitemap-item,
    .feature-category,
    .content-category,
    .tech-category,
    .nav-group {
        padding: 20px 15px;
    }
    
    .rule-item-detailed,
    .step-item,
    .advanced-tip,
    .mistake-item,
    .speed-tip,
    .scoring-tip,
    .policy-section {
        padding: 20px 15px;
    }
} 