/**
 * Google Photos Shortcode Styles
 */

.google-photos-container {
    max-width: 100%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.google-photos-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.google-photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.google-photos-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    padding: 0 20px;
}

.google-photos-count {
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.google-photos-link {
    position: relative;
    z-index: 3;
    margin-top: 10px;
}

.google-photos-link a {
    display: inline-flex;
    align-items: center;
    background-color: rgba(66, 133, 244, 0.9);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.google-photos-link a:hover {
    background-color: rgba(66, 133, 244, 1);
    text-decoration: none;
}

.google-photos-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.google-photos-error {
    color: #d63638;
    padding: 10px;
    border-left: 4px solid #d63638;
    background-color: #f8d7da;
    margin: 10px 0;
}

/* Fallback image if no album cover is available */
.google-photos-container:not(:has(.google-photos-preview)) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M19.375 4.625A9.375 9.375 0 1 0 19.375 23.375 9.375 9.375 0 1 0 19.375 4.625z'/%3E%3Cpath fill='%23EA4335' d='M4.625 19.375A9.375 9.375 0 1 0 4.625 0.625 9.375 9.375 0 1 0 4.625 19.375z'/%3E%3Cpath fill='%23FBBC05' d='M12 24c-2.589 0-4.688-2.099-4.688-4.688 0-2.589 2.099-4.688 4.688-4.688s4.688 2.099 4.688 4.688C16.688 21.901 14.589 24 12 24zM12 9.375c-2.589 0-4.688-2.099-4.688-4.688S9.411 0 12 0s4.688 2.099 4.688 4.688S14.589 9.375 12 9.375z'/%3E%3Cpath fill='%2334A853' d='M24 12c0 2.589-2.099 4.688-4.688 4.688s-4.688-2.099-4.688-4.688 2.099-4.688 4.688-4.688S24 9.411 24 12zM9.375 12c0 2.589-2.099 4.688-4.688 4.688S0 14.589 0 12s2.099-4.688 4.688-4.688S9.375 9.411 9.375 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 60px 60px;
    background-position: center;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .google-photos-container {
        height: 300px !important;
    }
    
    .google-photos-title {
        font-size: 20px;
    }
}