/* Period Calculator Tool Styles */

.tool-page { 
    padding-top: 0; 
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover { 
    color: #f5576c; 
}

.breadcrumb .separator { 
    margin: 0 10px; 
    color: #e0e0e0; 
}

.breadcrumb .current { 
    color: #1a1a1a; 
    font-weight: 600; 
}

.tool-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator { 
    opacity: 0.5; 
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Period Calculator Container */
.period-calc-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.period-calc-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.period-calc-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.period-calc-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.period-calc-body {
    padding: 40px 30px;
}

.period-input-section {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.period-input-group {
    position: relative;
}

.period-input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
}

.period-input-group input,
.period-input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.period-input-group input:focus,
.period-input-group select:focus {
    outline: none;
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245,87,108,0.1);
}

.period-calc-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.period-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,87,108,0.3);
}

.period-result {
    margin-top: 35px;
    display: none;
}

.period-result.show {
    display: block;
    animation: slideInUp 0.5s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.period-main-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.period-main-result h3 {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 500;
}

.period-date-big {
    font-size: 42px;
    font-weight: 800;
    margin: 10px 0;
}

.period-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.period-info-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #f5576c;
    text-align: center;
}

.period-info-card h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.period-info-card p {
    font-size: 24px;
    font-weight: 700;
    color: #f5576c;
    margin: 0;
}

.period-calendar {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.period-calendar h3 {
    font-size: 20px;
    color: #f5576c;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.period-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.period-date-item {
    padding: 15px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(245, 87, 108, 0.2);
    transition: all 0.3s;
}

.period-date-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.2);
}

.period-date-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.period-date-value {
    font-size: 18px;
    font-weight: 700;
    color: #f5576c;
}

.period-tips {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
}

.period-tips h4 {
    color: #f57c00;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.period-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.period-tips li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.ovulation-highlight {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: 2px solid #4facfe;
}

.fertile-window {
    background: linear-gradient(135deg, #fff1eb 0%, #ace0f9 100%);
    border: 2px solid #43e97b;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.content-article h2:first-child { 
    margin-top: 0; 
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #1a1a1a;
    font-weight: 700;
}

.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #f5576c;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #1a1a1a;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tool-header h1 { 
        font-size: 32px; 
    }
    
    .tool-subtitle { 
        font-size: 16px; 
    }
    
    .tool-icon-large { 
        font-size: 52px; 
    }
    
    .period-calc-container {
        border-radius: 15px;
    }
    
    .period-calc-header {
        padding: 30px 20px;
    }
    
    .period-calc-header h2 {
        font-size: 28px;
    }
    
    .period-calc-body {
        padding: 30px 20px;
    }
    
    .period-date-big {
        font-size: 32px;
    }
    
    .period-calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .period-info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-article h2 { 
        font-size: 26px; 
    }
    
    .content-article h3 { 
        font-size: 20px; 
    }
    
    .related-tools-grid { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 40px 15px;
    }
    
    .tool-header h1 { 
        font-size: 26px; 
    }
    
    .tool-subtitle { 
        font-size: 14px; 
    }
    
    .tool-content { 
        padding: 40px 15px; 
    }
    
    .period-calc-header {
        padding: 25px 15px;
    }
    
    .period-calc-header h2 {
        font-size: 24px;
    }
    
    .period-calc-body {
        padding: 25px 15px;
    }
    
    .period-date-big {
        font-size: 28px;
    }
    
    .seo-content {
        padding: 60px 15px;
    }
    
    .content-article h2 { 
        font-size: 22px; 
    }
    
    .content-article h3 { 
        font-size: 18px; 
    }
    
    .related-tools {
        padding: 25px 15px;
    }
}