﻿/* Homepage Container */
.homepage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section - Larger Logo */
.hero-section {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    background: -webkit-linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    border-radius: 8px;
    padding: 10px 10px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
    -webkit-box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    height: 70px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.welcome-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.95;
    margin: 0;
}

/* Alert Messages */
.alert {
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 2px solid;
    font-size: 0.8rem;
}

.alert-error {
    background-color: #fee;
    border-left-color: #c33;
    color: #c33;
}

/* Content Grid - Side by Side */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .card.full-width {
        grid-column: 1 / -1;
    }

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background: -webkit-linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4px 8px;
    border-bottom: 1px solid #dee2e6;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
}

.card-icon {
    font-size: 0.9rem;
}

.card-header h2 {
    margin: 0;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.card-body {
    padding: 8px;
}

/* Profile Card - More Compact */
.profile-card .card-body {
    padding: 4px;
}

.profile-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
}

.info-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 2px 5px;
    background: #f8f9fa;
    border-radius: 3px;
}

    .info-row:hover {
        background: #e9ecef;
    }

    .info-row.highlight {
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
        background: -webkit-linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
        padding: 3px 6px;
    }

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.info-value {
    color: #333;
    font-size: 0.9rem;
    text-align: right;
}

    .info-value.handicap {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ff9900;
    }

/* Membership Card - More Compact */
.membership-card .card-body {
    padding: 4px;
}

.membership-info {
    text-align: center;
}

.membership-level {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff9900;
    margin-bottom: 3px;
    padding: 3px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 4px;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.6rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

    .status-badge.active {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.inactive {
        background: #f8d7da;
        color: #721c24;
    }

/* Preference Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-course {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3d1b 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(44, 95, 45, 0.3);
}

.badge-tee {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.address-section {
    margin-top: 4px;
    padding: 3px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-size: 0.65rem;
    line-height: 1.1;
}

    .address-section p {
        margin: 1px 0;
    }

/* Actions Grid - 5 Columns */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.action-form {
    display: contents;
}

/* Action Buttons - Ultra Compact */
.action-btn {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 85px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .action-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
        background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
        opacity: 0;
        -webkit-transition: opacity 0.3s ease;
        -o-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
    }

    .action-btn:hover::before {
        opacity: 1;
    }

    .action-btn.enabled {
        background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
        background: -webkit-linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
        color: white;
        box-shadow: 0 2px 6px rgba(255, 153, 0, 0.3);
        -webkit-box-shadow: 0 2px 6px rgba(255, 153, 0, 0.3);
    }

        .action-btn.enabled:hover {
            -webkit-transform: translateY(-2px);
            -ms-transform: translateY(-2px);
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(255, 153, 0, 0.4);
            -webkit-box-shadow: 0 3px 10px rgba(255, 153, 0, 0.4);
        }

        .action-btn.enabled:active {
            -webkit-transform: translateY(-1px);
            -ms-transform: translateY(-1px);
            transform: translateY(-1px);
        }

    .action-btn.disabled {
        background: #e9ecef;
        color: #adb5bd;
        cursor: not-allowed;
        box-shadow: none;
        -webkit-box-shadow: none;
    }

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: block;
}

.btn-text {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
    line-height: 1.1;
}

.btn-desc {
    font-size: 0.65rem;
    opacity: 0.9;
    display: block;
    line-height: 1.1;
}

.action-btn.disabled .btn-icon,
.action-btn.disabled .btn-text,
.action-btn.disabled .btn-desc {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .actions-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 5px;
    }

    .hero-section {
        padding: 8px 8px;
    }

    .hero-logo {
        height: 50px;
    }

    .welcome-text {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .profile-info {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .game-item-compact {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
}

/* Legacy styles (for backwards compatibility) */
.imagediv {
    display: none;
}

.table-border {
    display: none;
}

/* ✅ Upcoming Group Games Notification Card */
.notification-card {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    background: -webkit-linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    border: 2px solid #ff9900;
    text-align: left;
}

.notification-card .card-header {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    background: -webkit-linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    padding: 6px 8px;
    text-align: left;
}

.notification-card .card-header h2 {
    color: white;
    font-size: 0.85rem;
    text-align: left;
}

.notification-card .card-icon {
    font-size: 1rem;
}

.notification-card .card-body {
    padding: 6px;
    text-align: left;
}

.count-badge {
    margin-left: auto;
    background: white;
    color: #ff9900;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Compact games list for column layout */
.games-list-compact {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 6px;
    text-align: left !important;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start !important;
    width: 100%;
}

.game-item-compact {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start !important;
    gap: 8px;
    padding: 6px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    text-align: left !important;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.game-item-compact:hover {
    border-color: #ff9900;
    box-shadow: 0 2px 6px rgba(255, 153, 0, 0.2);
}

.game-actions-compact {
    margin-left: auto;
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-tee-sheet-compact {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.btn-tee-sheet-compact:hover {
    background: #218838;
    transform: translateY(-1px);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    -webkit-box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.game-date-badge-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 45px;
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.date-day-small {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.date-month-small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.game-details-compact {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
    text-align: left !important;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start !important;
}

.game-name-compact {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    text-align: left !important;
    width: 100%;
}

.game-meta-compact {
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: left !important;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start !important;
    width: 100%;
}

.tee-time {
    font-weight: 600;
    color: #2c5f2d;
}

.no-tee-time {
    font-weight: 600;
    color: #999;
    font-style: italic;
}

.days-until-compact {
    font-weight: 600;
    color: #ff9900;
}

.dot-separator {
    color: #ccc;
}

.view-all-games-compact {
    text-align: left;
    padding-top: 6px;
    border-top: 1px solid #e9ecef;
    margin-top: 6px;
}

.btn-view-all-compact {
    background: white;
    color: #ff9900;
    border: 2px solid #ff9900;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.btn-view-all-compact:hover {
    background: #ff9900;
    color: white;
}

/* Full-width layout styles (kept for backward compatibility) */
.notification-card {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    border: 2px solid #ff9900;
}

.notification-card .card-header {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    padding: 8px 12px;
}

.notification-card .card-header h2 {
    color: white;
    font-size: 1rem;
}

.notification-card .card-icon {
    font-size: 1.2rem;
}

.count-badge {
    margin-left: auto;
    background: white;
    color: #ff9900;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.game-item:hover {
    border-color: #ff9900;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2);
    transform: translateX(4px);
}

.game-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.game-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.game-course {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-meta .icon {
    font-size: 0.9rem;
}

.dot-separator {
    color: #ccc;
}

.days-until {
    font-weight: 600;
    color: #ff9900;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-view {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

.view-all-games {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.btn-view-all {
    background: white;
    color: #ff9900;
    border: 2px solid #ff9900;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #ff9900;
    color: white;
    transform: scale(1.05);
}

/* Responsive adjustments for notifications */
@media (max-width: 768px) {
    .game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .game-date-badge {
        align-self: flex-start;
    }

    .game-actions {
        width: 100%;
    }

    .btn-view {
        width: 100%;
    }
}
