/* Import mobile-first styles */
@import url('styles-mobile.css');

/* Additional styles for larger screens and complex components */

/* Pregnancy Probability Section */
.pregnancy-probability {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    padding: 25px 15px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.pregnancy-probability h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
    font-size: 1.2rem;
}

.probability-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.probability-main {
    text-align: center;
    padding: 20px 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.probability-main.low {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--success-color);
}

.probability-main.medium {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--warning-color);
}

.probability-main.high {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid var(--danger-color);
}

.probability-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.probability-main.low .probability-percentage {
    color: #155724;
}

.probability-main.medium .probability-percentage {
    color: #856404;
}

.probability-main.high .probability-percentage {
    color: #721c24;
}

.probability-level {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.probability-status {
    font-size: 0.9rem;
    opacity: 0.8;
}

.probability-factors {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.factor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.factor-label {
    font-weight: 600;
    color: var(--text-dark);
}

.factor-value {
    color: var(--secondary-color);
    font-weight: 600;
}

.probability-explanation {
    background: var(--white);
    padding: 20px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.explanation-content h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 8px;
    font-size: 1.1rem;
}

.explanation-content p {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    background: var(--light-bg);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    line-height: 1.5;
}

.recommendations li:before {
    content: "💡 ";
    margin-right: 8px;
}

/* Secondary Content (Aside) */
.secondary-content {
    padding: 15px;
    background: var(--light-bg);
}

/* Cycle Info */
.cycle-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    padding: 20px 15px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.cycle-info h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.cycle-edit {
    margin-bottom: 20px;
}

.edit-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.edit-controls label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.edit-controls select {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--white);
    min-height: 44px;
}

.edit-controls select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.edit-controls small {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

.cycle-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.cycle-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
}

.stat-value {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Period Edit */
.period-edit {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 20px 15px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    border-left: 4px solid var(--warning-color);
    box-shadow: var(--shadow);
}

.period-edit h3 {
    margin-bottom: 15px;
    color: #856404;
    font-size: 1.2rem;
}

.edit-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* Predictions */
.predictions {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 20px 15px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.predictions h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.prediction-item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.prediction-item h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.prediction-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pred-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.pred-icon {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

/* Website Notifications */
.website-notifications {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    padding: 20px 15px;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--success-color);
    box-shadow: var(--shadow);
}

.website-notifications h3 {
    margin-bottom: 15px;
    color: #155724;
    font-size: 1.2rem;
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.notification-settings label:hover {
    background: #f8fff8;
}

.notification-settings input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#notificationStatus {
    color: #155724;
    font-style: italic;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-content > p {
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cccccc;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
    color: #cccccc;
    line-height: 1.5;
}

.footer-section li:before {
    content: "• ";
    color: var(--primary-color);
    margin-right: 8px;
}

.disclaimer {
    background: rgba(255, 107, 157, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.disclaimer h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.disclaimer p {
    line-height: 1.6;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .probability-factors {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cycle-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .edit-controls {
        flex-direction: row;
        align-items: end;
        flex-wrap: wrap;
    }
    
    .edit-controls select {
        flex: 1;
        min-width: 150px;
    }
    
    .edit-buttons {
        flex-direction: row;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .probability-percentage {
        font-size: 3rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .app-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .main-content {
        grid-column: 1;
    }
    
    .secondary-content {
        grid-column: 2;
        position: sticky;
        top: 20px;
        padding: 0;
        background: transparent;
    }
    
    .probability-factors {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cycle-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-sections {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .prediction-details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .pred-item {
        flex: 1;
        min-width: 200px;
    }
}

/* App Content Layout */
.app-content {
    display: block;
}

.main-content {
    width: 100%;
}
}

/* Performance Optimizations */
.calendar-day,
.bead,
.day-bead {
    will-change: transform;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Mobile and Tablet Layout */
@media (max-width: 1023px) {
    .app-content {
        display: block;
    }
    
    .main-content {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .secondary-content {
        width: 100%;
        padding: 15px;
        background: var(--light-bg);
        border-radius: var(--border-radius-lg);
        margin-top: 20px;
    }
}
/* AdSense Ad Container Styles */
.ad-container {
    margin: 20px 0;
    text-align: center;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-color);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-top {
    margin: 15px 0 25px 0;
    max-width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ad-rectangle {
    margin: 30px 0;
    max-width: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.ad-sidebar {
    margin: 20px 0;
    position: sticky;
    top: 20px;
    min-height: 400px;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

/* AdSense Responsive Styling */
.adsbygoogle {
    display: block !important;
    margin: 0 auto;
    min-height: inherit;
}

/* Mobile Ad Optimization */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        padding: 12px;
        min-height: 120px;
    }
    
    .ad-banner-top {
        margin: 10px 0 20px 0;
        min-height: 150px;
    }
    
    .ad-rectangle {
        margin: 20px 0;
        min-height: 320px;
    }
    
    .ad-sidebar {
        position: static;
        margin: 15px 0;
        min-height: 250px;
    }
}

/* Desktop Ad Optimization */
@media (min-width: 1024px) {
    .ad-banner-top {
        max-width: 728px;
        min-height: 250px;
        margin: 20px auto 30px auto;
    }
    
    .ad-rectangle {
        max-width: 336px;
        min-height: 350px;
        margin: 30px auto;
    }
    
    .ad-sidebar {
        max-width: 300px;
        min-height: 500px;
    }
}

/* Ad Loading States */
.ad-container:empty::before,
.ad-container::before {
    content: "Advertisement";
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.7;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ad-container {
    position: relative;
}

/* Ensure ads don't break layout */
.ad-container ins {
    max-width: 100%;
    overflow: hidden;
    min-height: inherit;
}
/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    font-size: 14px;
}

.cookie-buttons a {
    text-decoration: underline;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-buttons button {
        width: 100%;
        max-width: 200px;
    }
}