/* Golf Bump Share Page Styles */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #2d5016;
    min-height: 100vh;
    position: relative;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content h2 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.loading-content p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Golf Ball Loader Animation */
.golf-ball-loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.golf-ball {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    position: relative;
    animation: bounce 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.golf-ball::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, transparent 2px, white 2px, white 4px, transparent 4px),
                radial-gradient(circle at 70% 30%, transparent 2px, white 2px, white 4px, transparent 4px),
                radial-gradient(circle at 50% 70%, transparent 2px, white 2px, white 4px, transparent 4px);
    border-radius: 50%;
}

.golf-ball-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    animation: shadow 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes shadow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scale(0.8); opacity: 0.1; }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    background: white;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    pointer-events: none;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Profile Section */
.profile-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.avatar-container {
    flex-shrink: 0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.avatar-initials {
    text-transform: uppercase;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.user-email {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.user-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.9rem;
}

.location-icon {
    font-size: 1rem;
}

.invitation-message {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid #c4d9c4;
}

.invitation-message h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.invitation-message p {
    color: #666;
    line-height: 1.6;
}

.user-bio {
    margin-bottom: 20px;
}

.user-bio h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.user-bio p {
    color: #666;
    line-height: 1.6;
}

.user-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.detail-value {
    color: #666;
    flex: 1;
}

/* Action Section */
.action-section {
    padding: 40px 0;
    background: white;
}

.action-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.action-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.action-card > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.ios-btn {
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.android-btn {
    background: linear-gradient(135deg, #34a853 0%, #137333 100%);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.btn-title {
    font-size: 1rem;
    font-weight: 600;
}

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

.action-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn.primary:hover {
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.features-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Error Screen */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #2d7d32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.error-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-card {
        padding: 20px;
        margin: 0 15px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .alternative-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .user-name {
        font-size: 1.3rem;
    }
    
    .features-section h3 {
        font-size: 1.5rem;
    }
    
    .action-card h3 {
        font-size: 1.3rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animation for smooth transitions */
.main-content {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Focus styles for accessibility */
.action-btn:focus,
.download-btn:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e3b1f 0%, #163e25 100%);
    }
    
    .main-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .profile-card {
        background: #3a3a3a;
        color: #e0e0e0;
    }
    
    .invitation-message {
        background: #3a3a3a;
        border-color: #555;
        color: #b0b0b0;
    }
    
    .action-btn.secondary {
        background: #3a3a3a;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .action-btn.secondary:hover {
        background: #4a4a4a;
        border-color: #666;
    }
    
    .profile-section,
    .features-section {
        background: #2d2d2d;
    }
    
    .feature-item {
        background: #3a3a3a;
        color: #e0e0e0;
    }
    
    .user-name,
    .user-bio h4,
    .detail-label,
    .action-card h3,
    .features-section h3,
    .feature-item h4,
    .invitation-message h3 {
        color: #e0e0e0;
    }
    
    .user-email,
    .user-location,
    .user-bio p,
    .detail-value,
    .action-card > p,
    .feature-item p,
    .invitation-message p {
        color: #b0b0b0;
    }
    
    .user-details {
        border-color: #555;
    }
}

/* Print styles */
@media print {
    .loading-screen,
    .error-screen,
    .action-section,
    .features-section,
    .footer {
        display: none !important;
    }
    
    .main-content {
        background: white !important;
    }
    
    .header {
        background: white !important;
        color: black !important;
    }
    
    .profile-section {
        background: white !important;
    }
}
