/* GTT Plugin Frontend Styles */

/* Reset and Base Styles */
.gtt-form *,
.gtt-my-account-wrapper *,
.gtt-events-calendar * {
    box-sizing: border-box;
}

/* Common Button Styles */
.gtt-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gtt-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gtt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gtt-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gtt-btn-secondary {
    background: #6c757d;
}

.gtt-btn-secondary:hover {
    background: #5a6268;
}

.gtt-btn-success {
    background: #28a745;
}

.gtt-btn-success:hover {
    background: #218838;
}

.gtt-btn-danger {
    background: #dc3545;
}

.gtt-btn-danger:hover {
    background: #c82333;
}

.gtt-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.gtt-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Loading Spinner */
.gtt-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: gtt-spin 1s linear infinite;
}

@keyframes gtt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Elements */
.gtt-form-group {
    margin-bottom: 20px;
}

.gtt-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.gtt-form-group input[type="text"],
.gtt-form-group input[type="email"],
.gtt-form-group input[type="password"],
.gtt-form-group input[type="tel"],
.gtt-form-group select,
.gtt-form-group textarea {
    width: 100%;
  padding: 12px;
  border: 1px solid #494949 !important;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #373737  !important;
  color: #fff;
}

.gtt-form-group input:focus,
.gtt-form-group select:focus,
.gtt-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Status and Membership Badges */
.gtt-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.gtt-badge-success {
    background: #d4edda;
    color: #155724;
}

.gtt-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.gtt-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.gtt-badge-info {
    background: #cce7ff;
    color: #004085;
}

.gtt-badge-premium {
    background: #ffeaa7;
    color: #6c5ce7;
}

/* Card Components */
.gtt-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gtt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.gtt-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.gtt-card-body {
    padding: 25px;
}

.gtt-card-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Grid System */
.gtt-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.gtt-col {
    flex: 1;
    padding: 0 15px;
}

.gtt-col-12 { flex: 0 0 100%; }
.gtt-col-6 { flex: 0 0 50%; }
.gtt-col-4 { flex: 0 0 33.333%; }
.gtt-col-3 { flex: 0 0 25%; }

/* Event Calendar Specific Styles */
.gtt-events-calendar-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.gtt-calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.gtt-calendar-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 600;
}

.gtt-calendar-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.gtt-calendar-body {
    padding: 30px;
}

/* Event Detail Styles */
.gtt-event-detail {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gtt-event-featured-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gtt-event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gtt-event-content {
    padding: 40px;
}

.gtt-event-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
}

.gtt-event-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.gtt-event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gtt-event-meta-item .dashicons {
    color: #667eea;
    font-size: 20px;
}

.gtt-event-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
}

.gtt-event-gallery {
    margin-top: 40px;
}

.gtt-event-gallery h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.gtt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gtt-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gtt-gallery-item:hover {
    transform: scale(1.05);
}

.gtt-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Alert Messages */
.gtt-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.gtt-alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.gtt-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.gtt-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.gtt-alert-info {
    background: #cce7ff;
    color: #004085;
    border-color: #b6d7ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gtt-row {
        margin: 0;
    }
    
    .gtt-col {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .gtt-col-12,
    .gtt-col-6,
    .gtt-col-4,
    .gtt-col-3 {
        flex: 0 0 100%;
    }
    
    .gtt-event-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .gtt-event-title {
        font-size: 28px;
    }
    
    .gtt-event-content {
        padding: 20px;
    }
    
    .gtt-calendar-header {
        padding: 20px;
    }
    
    .gtt-calendar-header h2 {
        font-size: 24px;
    }
    
    .gtt-calendar-body {
        padding: 20px;
    }
    
    .gtt-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gtt-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gtt-event-featured-image {
        height: 250px;
    }
    
    .gtt-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Custom Scrollbar */
.gtt-scrollable::-webkit-scrollbar {
    width: 8px;
}

.gtt-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gtt-scrollable::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.gtt-scrollable::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Accessibility */
.gtt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.gtt-btn:focus,
.gtt-form-group input:focus,
.gtt-form-group select:focus,
.gtt-form-group textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animation Classes */
.gtt-fade-in {
    animation: gttFadeIn 0.5s ease-in;
}

.gtt-slide-up {
    animation: gttSlideUp 0.5s ease-out;
}

@keyframes gttFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gttSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .gtt-btn,
    .gtt-form-group,
    .gtt-calendar-body {
        display: none !important;
    }
    
    .gtt-event-detail {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}