/* Custom styles for Daily Log application */

/* Theme variables */
:root,
[data-bs-theme="dark"] {
    --app-tile-bg: #2c2f33;
    --app-tile-color: #fff;
    --app-tile-desc-color: #adb5bd;
    --app-tile-hover-shadow: rgba(255, 255, 255, 0.15);
    --app-card-header-bg: #1a3a5c;
    --app-testimonial-bg: #1a3a5c;
    --app-certification-gradient: linear-gradient(to right, #0d2d4a 0%, #1a3a5c 25%, #1a3a5c 75%, #0d2d4a 100%);
    --app-certification-text: #e9ecef;
}

[data-bs-theme="light"] {
    --app-tile-bg: #f0f2f5;
    --app-tile-color: #212529;
    --app-tile-desc-color: #6c757d;
    --app-tile-hover-shadow: rgba(0, 0, 0, 0.15);
    --app-card-header-bg: #0d6efd;
    --app-testimonial-bg: #0d6efd;
    --app-certification-gradient: linear-gradient(to right, #0a4a8c 0%, #0d6efd 25%, #0d6efd 75%, #0a4a8c 100%);
    --app-certification-text: #fff;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Journal entry styles */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Profile photo styles */
.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bs-primary);
}

.profile-photo-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* Auth form styles */
.auth-form {
    max-width: 550px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: var(--bs-secondary-bg);
}

/* Footer styling */
.footer {
    margin-top: auto;
}

/* Form field focus effect */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom badges for dates */
.date-badge {
    font-size: 0.8rem;
    font-weight: normal;
    padding: 0.35em 0.65em;
}

/* Loading spinner animation */
@keyframes spinner {
    to {transform: rotate(360deg);}
}

.loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--bs-primary);
    animation: spinner 0.8s linear infinite;
    display: inline-block;
}


.quote-container {
    position: relative;
    display: inline-block;
    width: 100%; /* Adjust as needed */
}

.quote-container img {
    width: 100%; /* Make the image responsive */
    height: auto;
    display: block;
}

.quote-text {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for centering */
    color: white; /* Text color */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 10px 20px; /* Add padding around the text */
    border-radius: 5px; /* Optional: rounded corners */
    font-size: 1.2rem; /* Adjust font size */
    text-align: center; /* Center the text */
}

.tile {
    position: relative;
    background-color: var(--app-tile-bg);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: var(--app-tile-color);
    text-decoration: none;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--app-tile-hover-shadow);
}

.tile a {
    display: block; /* Ensure the link behaves as a block element */
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    height: 100%; /* Ensure the link covers the full tile */
    width: 100%; /* Ensure the link covers the full tile */
}

.tile-icon {
    color: #0d6efd; /* Bright color for the icon */
    margin-bottom: 10px;
}

.tile-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.tile-description {
    font-size: 0.9rem;
    color: var(--app-tile-desc-color);
    opacity: 0; /* Initially hidden */
    max-height: 0; /* Collapse the description */
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.tile:hover .tile-description {
    opacity: 1; /* Show on hover */
    max-height: 100px; /* Expand the description */
}

@media (max-width: 1366px) and (min-width: 1024px) {
    .quote-container img {
        max-width: 100%;
        height: auto; /* Ensure the image scales proportionally */
    }
    .row.mt-5 {
        flex-direction: column;
        align-items: center;
    }
    .quote-container .quote-text {
        font-size: unset;
    }
}

@media (max-width: 1024px) {
    .row.mt-5 {
        flex-direction: column;
        align-items: center;
    }
    .quote-container .quote-text {
        font-size: unset;
    }
}

@media (max-width: 768px) {
    .row.mt-5 {
        flex-direction: column;
        align-items: center;
    }
    .quote-container .quote-text {
        font-size: unset;
    }
}


.card-header {
        background-color: var(--app-card-header-bg);
        color: white;
        cursor: pointer;
    }

.card-header .btn-link {
    color: white; /* Ensure the button link also appears as white */
    text-decoration: none; /* Remove underline from button text */
}

.card-header .btn-link:hover {
    color: #ddd; /* Optional: Change color on hover */
}

.card-header .btn-outline-primary {
    color: white; /* Ensure the '+' button text is white */
    border-color: white; /* White border for the button */
}

.card-header .btn-outline-primary:hover, .card-header .btn-outline-primary:focus {
    color: #ddd; /* Change color on hover/focus */
    border-color: #ddd; /* Change border color on hover/focus */
}
.card-title {
    margin-bottom: 0; /* Ensure no extra margin */
    font-size: 1.0rem; /* Adjust the font size as needed */
    display: flex;
    align-items: center; /* Center text vertically */
}

.badge.bg-strava {
    background-color: #FC4C02 !important;
}

.badge.bg-fitbit {
    background-color: #00B0B9 !important;
}

.badge.bg-google_health {
    background-color: #00B0B9 !important;
}

.fitness-json-preview {
    max-height: 420px;
    overflow: auto;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--bs-tertiary-bg);
    font-size: 0.9rem;
}

.fitness-map-shell {
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 40%),
        linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(233, 236, 239, 0.85));
}

.fitness-map-canvas {
    width: 100%;
    height: 520px;
    display: block;
}

.time {
    flex-grow: 1; /* Allow the time to push the button to the right */
    text-align: right; /* Right align the text within its container */
    margin-right: 10px; /* Space between text and button */
}

.card-tile {
        background-color: #0067dc; /* Set the background color */
        color: white; /* Set the text color to white */
        flex: 1 1 auto;
        padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
        
    }

.certification-section {
    background: var(--app-certification-gradient);
    padding: 20px;
    border-radius: 8px;
    color: var(--app-certification-text);
}

.certification-item {
    background-color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px; /* Space between items */
    color: black;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


.testimonial-card {
        background-color: var(--app-testimonial-bg);
        color: white;
        cursor: pointer;
    }

.testimonial-card-blue {
        background-color: #0067dc; /* Set the background color */
        color: white; /* Set the text color to white */
        cursor: pointer;
    }

.blockquote-footer {
    color: white; /* Set the text color to white */
    margin-top: 5px; /* Add some space between the quote and the footer */
}
