/**
 * Frontend Styles for Holistic Yog Events
 */

/* Events Grid */
.techst-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin: 40px 0;
}

.techst-events-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.techst-events-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.techst-events-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Event Item - Enhanced Design */
.techst-event-item {
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.techst-event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.techst-event-item:hover::before {
    opacity: 1;
}

.techst-event-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.techst-event-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.techst-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.techst-event-item:hover .techst-event-image img {
    transform: scale(1.1);
}

.techst-event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.techst-event-title {
    margin: 0 0 18px 0;
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.3;
}

.techst-event-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.techst-event-title a:hover {
    color: #667eea;
}

.techst-event-meta {
    margin-bottom: 18px;
    font-size: 0.95em;
    color: #4a5568;
}

.techst-event-meta > div {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.techst-event-meta strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 70px;
}

.techst-event-time {
    margin-left: 5px;
    color: #718096;
    font-size: 0.9em;
}

.techst-event-excerpt {
    margin-bottom: 22px;
    color: #4a5568;
    flex: 1;
    line-height: 1.6;
}

.techst-event-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Buttons - Enhanced */
.techst-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    font-size: 0.95em;
    border: none;
    cursor: pointer;
}

.techst-btn-view {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    flex: 1;
}

.techst-btn-view:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.techst-btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex: 1;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.techst-btn-register:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.techst-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.techst-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.techst-btn-large {
    padding: 16px 36px;
    font-size: 1.15em;
}

/* No Events Message */
.techst-no-events {
    text-align: center;
    padding: 60px 40px;
    color: #718096;
    font-size: 1.2em;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

/* Featured Event Content (for shortcode/Popup Maker) */
.techst-featured-event-content {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.techst-featured-event-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    max-height: 250px;
}

.techst-featured-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.techst-featured-event-body {
    padding: 25px;
    background: #fff;
}

.techst-featured-event-title {
    margin: 0 0 18px 0;
    font-size: 1.6em;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.3;
}

.techst-featured-event-meta {
    margin-bottom: 18px;
    padding: 18px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.techst-featured-event-meta > div {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.95em;
}

.techst-featured-event-meta > div:last-child {
    margin-bottom: 0;
}

.techst-featured-event-meta strong {
    color: #2d3748;
    margin-right: 8px;
    font-weight: 600;
}

.techst-featured-event-time {
    margin-left: 8px;
    color: #718096;
    font-size: 0.95em;
}

.techst-featured-event-excerpt {
    margin-bottom: 20px;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95em;
}

.techst-featured-event-actions {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

/* Events Calendar - Enhanced Design */
.techst-events-calendar {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.techst-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
}

.techst-calendar-nav {
    font-size: 1.8em;
    color: #667eea;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.techst-calendar-nav:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.1);
}

.techst-calendar-month {
    margin: 0;
    font-size: 1.8em;
    color: #2d3748;
    font-weight: 700;
}

.techst-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.techst-calendar-table th {
    padding: 15px 10px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.techst-calendar-table td {
    padding: 12px 8px;
    text-align: center;
    border: 2px solid #e2e8f0;
    vertical-align: top;
    min-height: 90px;
    position: relative;
    border-radius: 8px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.techst-calendar-day {
    min-height: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.techst-calendar-day:hover {
    background: #edf2f7 !important;
    border-color: #cbd5e0;
    transform: scale(1.05);
}

.techst-calendar-today {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%) !important;
    border-color: #667eea !important;
    font-weight: 700;
    color: #2d3748;
}

.techst-calendar-has-events {
    background: linear-gradient(135deg, #fef5e7 0%, #fde68a 100%) !important;
    border-color: #f59e0b !important;
    font-weight: 600;
}

.techst-calendar-day-number {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1.1em;
    color: #2d3748;
}

.techst-calendar-events {
    margin-top: 6px;
}

.techst-calendar-event-link {
    display: block;
    font-size: 0.75em;
    color: #667eea;
    text-decoration: none;
    padding: 4px 6px;
    margin-bottom: 3px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
    font-weight: 500;
}

.techst-calendar-event-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5568d3;
    transform: translateX(2px);
}

.techst-calendar-empty {
    background: #f7fafc !important;
    border-color: #e2e8f0 !important;
    opacity: 0.5;
}

/* Archive Page */
.techst-events-archive {
    padding: 50px 0;
}

.techst-events-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.techst-events-archive-title {
    font-size: 3em;
    margin: 0 0 15px 0;
    color: #2d3748;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.techst-events-archive-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.techst-filter-btn {
    padding: 12px 28px;
    background: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 1em;
}

.techst-filter-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.techst-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.techst-events-section {
    margin-bottom: 60px;
}

.techst-events-section h2 {
    font-size: 2.2em;
    margin-bottom: 35px;
    color: #2d3748;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
    font-weight: 700;
}

.techst-events-calendar-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #e2e8f0;
}

.techst-events-calendar-section h2 {
    font-size: 2.2em;
    margin-bottom: 35px;
    color: #2d3748;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
    font-weight: 700;
}

/* Single Event */
.techst-single-event {
    padding: 50px 0;
}

.techst-event-single-header {
    margin-bottom: 35px;
}

.techst-event-single-title {
    font-size: 3em;
    margin: 0;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.2;
}

.techst-event-single-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.techst-event-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.techst-event-single-meta {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    border-left: 5px solid #667eea;
}

.techst-event-single-meta-item {
    margin-bottom: 18px;
    font-size: 1.15em;
    color: #4a5568;
}

.techst-event-single-meta-item:last-child {
    margin-bottom: 0;
}

.techst-event-single-meta-item strong {
    color: #2d3748;
    margin-right: 12px;
    font-weight: 600;
}

.techst-event-single-description {
    margin-bottom: 40px;
    line-height: 1.9;
    color: #4a5568;
    font-size: 1.1em;
}

.techst-event-single-register {
    text-align: center;
    padding: 40px 0;
    border-top: 3px solid #e2e8f0;
}

/* Registration Page */
.techst-event-registration {
    padding: 50px 0;
}

.techst-registration-header {
    text-align: center;
    margin-bottom: 50px;
}

.techst-registration-title {
    font-size: 3em;
    margin: 0 0 20px 0;
    color: #2d3748;
    font-weight: 700;
}

.techst-registration-event-name {
    font-size: 1.3em;
    color: #4a5568;
    font-weight: 500;
}

.techst-registration-content {
    max-width: 850px;
    margin: 0 auto;
}

.techst-registration-form-wrapper {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.techst-registration-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 1.8em;
    font-weight: 700;
}

.techst-registration-price {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.techst-registration-price h3 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-weight: 600;
}

.techst-price-amount {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.techst-registration-payment {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.techst-registration-payment h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 1.8em;
    font-weight: 700;
}

.techst-gpay-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.techst-gpay-number {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    display: inline-block;
    border: 2px solid #e2e8f0;
}

.techst-gpay-instructions {
    margin-top: 20px;
    color: #4a5568;
    font-style: italic;
    font-size: 1.05em;
}

.techst-cf7-notice,
.techst-cf7-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    color: #856404;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.techst-cf7-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.techst-cf7-shortcode {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
}

.techst-cf7-shortcode code {
    font-size: 1.1em;
    color: #2d3748;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .techst-events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .techst-events-grid.columns-2,
    .techst-events-grid.columns-3,
    .techst-events-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .techst-featured-event-body {
        padding: 20px;
    }
    
    .techst-featured-event-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    .techst-featured-event-meta {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .techst-featured-event-excerpt {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .techst-calendar-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .techst-calendar-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    
    .techst-calendar-month {
        font-size: 1.4em;
    }
    
    .techst-events-archive-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .techst-filter-btn {
        text-align: center;
    }
    
    .techst-events-archive-title {
        font-size: 2em;
    }
    
    .techst-event-single-title {
        font-size: 2em;
    }
    
    .techst-registration-title {
        font-size: 2em;
    }
    
    .techst-registration-form-wrapper,
    .techst-registration-payment {
        padding: 25px;
    }
}
