
/* In surf-app.css */

.condition-note {
    font-size: 0.8em;
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.tag-rating {
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
   
}




.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.check-surf-btn, .last-checked-btn {
    padding: 10px 20px;
    height: 40px;
    border-radius: 4px;
}

.last-checked-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    cursor: default;
}

.last-checked-btn:disabled {
    opacity: 1;
    background-color: #f5f5f5;
}


.page-wrapper {
    background-image: url('http://www.teal-hippopotamus-303653.hostingersite.com/wp-content/uploads/2025/01/Back-ground-image-for-surf-app.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 40px 16px;
}

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

/* Header Section */
.page-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.page-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 800px;
}

/* Button and Timer Container */
.button-timer-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Action Button */
.check-surf-btn {
    
    background: rgba(0, 116, 170, 0.308);
    color: rgba(255, 255, 255, 0.8);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Add these properties to handle text wrapping */
    white-space: normal;
    line-height: 1.2;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.check-surf-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.check-surf-btn:disabled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .check-surf-btn {
        width: 90%;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}


#lastCheckedBtn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    min-height: 44px;
    /* Add these properties to handle text wrapping */
    white-space: normal;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 640px) {
    #lastCheckedBtn {
        width: 90%;
        margin: 0 auto;
        font-size: 13px;
        padding: 10px 16px;
    }
}


/* Timer */
.update-timer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 12px;
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: inline-block;
}

#countdown {
    font-weight: 600;
    color: white;
    margin-left: 4px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

/* Card Styling */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);    
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 16px;
    color: white;
}

/* Rating */
.tag-rating {
    color: #FFB800;
    font-size: 20px;
    font-weight: 600;
}

.rating-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-left: 8px;
}

/* Beach Name */
.card-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 16px 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Metrics Layout */
.card-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.condition-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.condition-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.condition-value {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Error State */
.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 32px 12px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .button-timer-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .update-timer {
        width: 100%;
    }
    
    .check-surf-btn {
        width: 100%;
    }
    
    .card-content {
        gap: 10px;
    }
    
    .card {
        padding: 14px;
    }
}