/* ============================================================================
   GOLFPRO APP - PREMIUM FEEDBACK & SUPPORT SYSTEM
   Modern, Clean, Professional Design
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.3s ease;
}

:root {
    --primary-color: #1e7e34;
    --primary-dark: #0d3d1a;
    --primary-light: #52b788;
    --accent-color: #d4a574;
    --accent-light: #f4d9c8;
    --title-color: #000000;
    --subtitle-color: #333333;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #52b788;
    --error-color: #d62828;
    --warning-color: #f77f00;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --std-border: 1px solid #eeeeee90;
}

/* Dark mode theme */
[data-theme="dark"] {
    --primary-color: #1a5e2f;
    --primary-dark: #155c27;
    --primary-light: #2a7d44;
    --accent-color: #c99055;
    --accent-light: #2a241c;
    --title-color: #edf8e2;
    --subtitle-color: #e5d9c2;
    --text-dark: #e8dfd5;
    --text-light: #2c2a26;
    --bg-light: #0d0d0d;
    --bg-white: #1f1f1f;
    --border-color: #333333;
    --success-color: #3d9f5e;
    --error-color: #ff7070;
    --warning-color: #ffb366;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    width: 35px;
    height: 35px;
    border-radius: 7px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span {
    color: var(--accent-color);
}

.nav-brand i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-theme-toggle {
    margin-left: auto;
    margin-right: 0;
}

.theme-selector {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1000px;
    padding: 0.4rem;
}

.theme-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 1000px;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* ============================================================================
   HERO SECTION (HOME PAGE)
   ============================================================================ */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 126, 52, 0.05) 0%, rgba(82, 183, 136, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-container {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: var(--std-border);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="email"],
input[type="text"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-help-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.form-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================================
   MESSAGES & ALERTS
   ============================================================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-left: 4px solid var(--error-color);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* ============================================================================
   HELP PAGE STYLES
   ============================================================================ */

.help-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.help-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.help-section h3 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.help-section p,
.help-section li {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 0.75rem;
}

.help-section ul,
.help-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.help-section code {
    background-color: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-dark);
}

.guide-box {
    background-color: var(--accent-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#logo-box {
    display: flex;
    align-items: center;      /* vertical centering */
    gap: 0.75rem;             /* space between text and image */
}

#logo-tip-icon {
    width: 40px;              /* square */
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

/* ============================================================================
   CONTACT PAGE STYLES
   ============================================================================ */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-card a,
.contact-card p {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--border-color);
    font-size: 1.5rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background: rgb(22, 66, 12);
    color: #f5e4ce;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
}

/* ============================================================================
   LOADER
   ============================================================================ */

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-brand {
        flex: 0 0 100%;
    }

    .nav-links {
        gap: 1rem;
        flex: 0 0 100%;
        justify-content: space-between;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .theme-selector {
        gap: 0.3rem;
        padding: 0.3rem;
    }

    .theme-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .form-container {
        padding: 1.5rem;
        background-color: var(--primary-dark);
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

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

.text-muted {
    color: var(--text-light);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.transition-all {
    transition: all 0.3s ease;
}
/* ============================================================================
   TABS & HISTORY
   ============================================================================ */

.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -2px;
}

.history-badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

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

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.history-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.history-item.pending {
    border-left: 4px solid var(--warning-color);
}

.history-item.resolved {
    border-left: 4px solid var(--success-color);
    opacity: 0.8;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.history-title i {
    color: var(--primary-color);
}

.history-status {
    background-color: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.history-item.pending .history-status {
    background-color: #fef3c7;
    color: #92400e;
}

.history-item.resolved .history-status {
    background-color: #d1fae5;
    color: #065f46;
}

.history-meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

.history-email {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: var(--bg-light);
    border-radius: 4px;
}

.history-message {
    color: var(--text-dark);
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: var(--accent-light);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    line-height: 1.5;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.btn-pending:hover {
    background-color: #fcd34d;
}

.btn-resolved {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.btn-resolved:hover {
    background-color: #a7f3d0;
}

.btn-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background-color: #fecaca;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: white;
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .history-header {
        flex-direction: column;
    }

    .history-actions {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }
}