/* NEWLOD Integration Plugin - Frontend Styles */

/* Common Styles */
.newlod-instructor,
.newlod-lessons,
.newlod-schedule {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.newlod-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 15px;
    color: #c33;
    margin: 10px 0;
}

.newlod-debug {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Instructor Styles */
.newlod-instructor {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.newlod-instructor-photo {
    flex-shrink: 0;
}

.newlod-instructor-photo .newlod-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.newlod-instructor-info {
    flex: 1;
}

.newlod-instructor-name {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
}

.newlod-nickname {
    font-size: 18px;
    color: #666;
    font-weight: normal;
}

.newlod-introduction,
.newlod-dance-career,
.newlod-lesson-policy,
.newlod-dance-profile,
.newlod-contact-info {
    margin-bottom: 20px;
}

.newlod-introduction h4,
.newlod-dance-career h4,
.newlod-lesson-policy h4,
.newlod-dance-profile h4,
.newlod-contact-info h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 4px;
}

.newlod-instructor-stats {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.newlod-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.newlod-stat {
    text-align: center;
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.newlod-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

.newlod-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.newlod-profile-details {
    margin-top: 10px;
}

.newlod-profile-item {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.newlod-profile-item:last-child {
    border-bottom: none;
}

.newlod-contact-item {
    margin-bottom: 8px;
}

.newlod-contact-item a {
    color: #007cba;
    text-decoration: none;
}

.newlod-contact-item a:hover {
    text-decoration: underline;
}

/* Lessons Grid Styles */
.newlod-lessons-grid {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.newlod-lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.newlod-lesson-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: white;
}

.newlod-lesson-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.newlod-lesson-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.newlod-lesson-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newlod-lesson-content {
    padding: 15px;
}

.newlod-lesson-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.newlod-lesson-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.newlod-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.newlod-lesson-duration,
.newlod-lesson-level {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.newlod-lesson-category {
    margin-left: auto;
}

.newlod-category-tag {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.newlod-lesson-price {
    margin-bottom: 15px;
    text-align: right;
}

.newlod-price-amount {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
}

.newlod-price-note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.newlod-lesson-action {
    text-align: center;
}

.newlod-booking-button {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.newlod-booking-button:hover {
    background: #005a87;
    color: white;
}

.newlod-no-lessons {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Schedule Calendar Styles */
.newlod-schedule-calendar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.newlod-schedule-header {
    margin-bottom: 20px;
    text-align: center;
}

.newlod-schedule-title {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #333;
}

.newlod-instructor-name {
    color: #666;
    margin: 0;
}

.newlod-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.newlod-date-block {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease;
}

.newlod-date-block.newlod-has-slots {
    border-color: #007cba;
    background: #f8fcff;
}

.newlod-date-block.newlod-no-slots {
    background: #f8f8f8;
    color: #999;
}

.newlod-date-header {
    margin-bottom: 8px;
}

.newlod-date-day {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.newlod-date-weekday {
    font-size: 12px;
    color: #666;
}

.newlod-time-slots {
    margin-bottom: 8px;
}

.newlod-time-slot {
    background: #e8f4f8;
    border: 1px solid #007cba;
    border-radius: 3px;
    padding: 4px 6px;
    margin: 2px 0;
    font-size: 11px;
    color: #005a87;
}

.newlod-time-slot.newlod-slot-unavailable {
    background: #f0f0f0;
    border-color: #ccc;
    color: #999;
}

.newlod-time-separator {
    margin: 0 2px;
}

.newlod-slot-count {
    margin-bottom: 8px;
}

.newlod-available-count {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.newlod-no-availability {
    margin-bottom: 8px;
}

.newlod-unavailable-text {
    color: #999;
    font-size: 12px;
}

.newlod-date-booking-button {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.newlod-date-booking-button:hover {
    background: #005a87;
    color: white;
}

.newlod-operating-hours {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.newlod-operating-hours h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.newlod-hours-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.newlod-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.newlod-day {
    font-weight: 500;
    color: #333;
}

.newlod-hours {
    color: #666;
}

.newlod-schedule-notes {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
}

.newlod-schedule-notes h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #856404;
}

.newlod-note {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 14px;
}

.newlod-note:last-child {
    margin-bottom: 0;
}

.newlod-no-schedule {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* 新しいスタイル追加 */
.newlod-instructor-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.newlod-detail-item {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #e9ecef;
}

.newlod-detail-item:last-child {
    border-bottom: none;
}

.newlod-recent-lessons {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.newlod-lessons-list {
    margin-top: 10px;
}

.newlod-lesson-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}

.newlod-lesson-item h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.newlod-lesson-item p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.newlod-lesson-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.newlod-fee {
    font-weight: bold;
    color: #007cba;
}

.newlod-lesson-capacity,
.newlod-lesson-target {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.newlod-lessons-instructor h3 {
    margin: 0 0 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.newlod-lessons-meta {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

.newlod-schedule-period {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 14px;
}

.newlod-operating-time {
    margin-bottom: 5px;
}

.newlod-date-full {
    display: block;
    font-size: 10px;
    color: #999;
}

.newlod-blocked-info {
    margin-top: 5px;
}

.newlod-blocked-text {
    color: #dc3545;
    font-size: 10px;
}

.newlod-schedule-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.newlod-schedule-summary h5 {
    margin: 0 0 15px 0;
    text-align: center;
    color: #333;
}

.newlod-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.newlod-stat-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.newlod-booking-count {
    background: #e7f3ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newlod-instructor {
        flex-direction: column;
        text-align: center;
    }
    
    .newlod-instructor-photo .newlod-photo {
        width: 100px;
        height: 100px;
    }
    
    .newlod-lessons-container {
        grid-template-columns: 1fr;
    }
    
    .newlod-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .newlod-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .newlod-hours-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .newlod-instructor,
    .newlod-lessons-grid,
    .newlod-schedule-calendar {
        padding: 15px;
    }
    
    .newlod-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .newlod-date-block {
        padding: 8px;
    }
    
    .newlod-date-day {
        font-size: 16px;
    }
}