
/* Google Calendar Display Plugin Styles */

.google-calendar-display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
    line-height: 1.6;
}

.gcd-error {
    padding: 15px;
    background: #fff2cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    margin: 15px 0;
    font-weight: 500;
}

.gcd-no-events {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Modern Theme */
.gcd-theme-modern .gcd-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 12px;
    font-weight: 600;
}

.gcd-event-modern {
    display: flex;
    margin-bottom: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gcd-event-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gcd-event-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.gcd-event-date {
    flex-shrink: 0;
    width: 120px;
    font-weight: 700;
    color: #3498db;
    font-size: 15px;
    margin-right: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcd-event-content {
    flex-grow: 1;
}

.gcd-event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.gcd-event-time {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.gcd-event-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.gcd-event-location {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
}

/* Card Theme */
.gcd-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.gcd-event-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.gcd-event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.gcd-event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.gcd-card-header {
    background: rgba(255,255,255,0.15);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.gcd-card-date {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcd-card-time {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.gcd-card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.gcd-card-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.gcd-card-description {
    margin: 0 0 15px 0;
    opacity: 0.95;
    line-height: 1.5;
    font-size: 15px;
}

.gcd-card-location {
    opacity: 0.9;
    font-size: 14px;
    font-weight: 500;
}

/* Timeline Theme */
.gcd-timeline-container {
    position: relative;
    padding-left: 40px;
    margin-top: 20px;
}

.gcd-timeline-container::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 2px;
}

.gcd-timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.gcd-timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px #3498db, 0 2px 8px rgba(52, 152, 219, 0.3);
    z-index: 2;
}

.gcd-timeline-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    margin-left: 10px;
    position: relative;
}

.gcd-timeline-content::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

.gcd-timeline-date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcd-timeline-title {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.gcd-timeline-description {
    margin: 0 0 12px 0;
    color: #555;
    line-height: 1.6;
}

.gcd-timeline-location {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
}

/* Minimal Theme */
.gcd-minimal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.gcd-minimal-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #555;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gcd-minimal-item:last-child {
    border-bottom: none;
}

.gcd-minimal-item:hover {
    background-color: #f8f9fa;
}

.gcd-minimal-date {
    font-weight: 700;
    color: #3498db;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.gcd-minimal-time {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.gcd-minimal-title {
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}

/* Classic Theme */
.gcd-classic-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.gcd-classic-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.gcd-classic-table th {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcd-classic-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f1f3f4;
    color: #555;
    vertical-align: top;
}

.gcd-classic-table tr:last-child td {
    border-bottom: none;
}

.gcd-classic-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.gcd-classic-table tbody tr:hover {
    background: #e3f2fd;
    transition: background-color 0.2s ease;
}

.gcd-classic-table td:first-child {
    font-weight: 600;
    color: #3498db;
}

/* Loading State */
.gcd-loading {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.gcd-loading::before {
    content: "⏳ ";
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gcd-event-modern {
        flex-direction: column;
        padding: 20px;
    }
    
    .gcd-event-date {
        width: auto;
        margin-right: 0;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .gcd-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gcd-timeline-container {
        padding-left: 25px;
    }
    
    .gcd-timeline-marker {
        left: -18px;
        width: 14px;
        height: 14px;
    }
    
    .gcd-timeline-content {
        margin-left: 5px;
        padding: 20px;
    }
    
    .gcd-classic-table {
        font-size: 14px;
    }
    
    .gcd-classic-table th,
    .gcd-classic-table td {
        padding: 12px 10px;
    }
    
    .gcd-minimal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gcd-minimal-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .gcd-theme-modern .gcd-title {
        font-size: 24px;
    }
    
    .gcd-event-title {
        font-size: 18px;
    }
    
    .gcd-card-title {
        font-size: 20px;
    }
    
    .gcd-timeline-title {
        font-size: 18px;
    }
    
    .gcd-classic-table th,
    .gcd-classic-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .google-calendar-display {
        color: #000 !important;
        background: #fff !important;
    }
    
    .gcd-event-modern,
    .gcd-event-card,
    .gcd-timeline-content {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .gcd-event-card {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
